Export (0) Print
Expand All

VersionControlServer.TrackMerges Method (Int32[], ItemIdentifier, ItemIdentifier[], ItemSpec, String[])

Gets merges that occurred from a source item to a set of target items, for a list of source Changeset IDs.

Namespace:  Microsoft.TeamFoundation.VersionControl.Client
Assembly:  Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)

public function TrackMerges(
	sourceChangesetIds : int[], 
	sourceItem : ItemIdentifier, 
	targetItems : ItemIdentifier[], 
	pathFilter : ItemSpec, 
	partialTargetItems : String[]
) : ExtendedMerge[]

Parameters

sourceChangesetIds
Type: System.Int32[]

An array of source changeset IDs.

sourceItem
Type: Microsoft.TeamFoundation.VersionControl.Client.ItemIdentifier

Source item to track merges from (recursive).

targetItems
Type: Microsoft.TeamFoundation.VersionControl.Client.ItemIdentifier[]

Target item to track merges to (recursive).

pathFilter
Type: Microsoft.TeamFoundation.VersionControl.Client.ItemSpec

Optional path filter to reduce the scope of source item.

partialTargetItems
Type: System.String[]

An array of target items where the source changeset has only been partially merged.

Return Value

Type: Microsoft.TeamFoundation.VersionControl.Client.ExtendedMerge[]
An array of ExtendedMerge objects representing the changes from the source item to the target item. Returns an empty array if no merge chain exists.

The source and target items need not be directly related. An example of using pathFilter: You may want data aggregated up to $/proj/main, but only track the folder $/proj/main/test.

Show:
© 2014 Microsoft