This documentation is archived and is not being maintained.

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 As Integer(), _
	sourceItem As ItemIdentifier, _
	targetItems As ItemIdentifier(), _
	pathFilter As ItemSpec, _
	<OutAttribute> ByRef partialTargetItems As String() _
) As ExtendedMerge()


Type: System.Int32()

An array of source changeset IDs.

Type: Microsoft.TeamFoundation.VersionControl.Client.ItemIdentifier

Source item to track merges from (recursive).

Type: Microsoft.TeamFoundation.VersionControl.Client.ItemIdentifier()

Target item to track merges to (recursive).

Type: Microsoft.TeamFoundation.VersionControl.Client.ItemSpec

Optional path filter to reduce the scope of source item.

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.