Previous Topic: CaWCrossProjectMerge

Next Topic: Placement Property


MergeRule Property

Gets or sets Rule for how to merge the versions of files in the packages.

Syntax

object.MergeRule = [value]

Owning Class

CaWCrossProjectMerge

Arguments

value - A string that represents the rule.

Notes

The following are the allowable values for the Merge Rule.

T

Take the entire trunk version and ignore the version on the branch. This corresponds to the GUI TakeTrunk Version option.

B

Take the entire branch version and ignore the version on the trunk. This corresponds to the GUI Take Branch Version option.

C

Create a merge tag only if changes in branch and trunk conflict. This corresponds to the GUI Merge Aggressively option.

A

Create a merge tag if there is any difference in the trunk and branch version at all. This corresponds to the GUI Merge Conservatively option.

Example

Dim objCrossProjectMerge
Set objCrossProjectMerge = objContext.GetCrossProjectMerge();
objCrossProjectMerge.MergeRule = “A”
 strMergeRule = objCrossProjectMerge.MergeRule