Share via


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

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)

Syntax

'Declaration
Public Function TrackMerges ( _
    sourceChangesetIds As Integer(), _
    sourceItem As ItemIdentifier, _
    targetItems As ItemIdentifier(), _
    pathFilter As ItemSpec _
) As ExtendedMerge()
public ExtendedMerge[] TrackMerges(
    int[] sourceChangesetIds,
    ItemIdentifier sourceItem,
    ItemIdentifier[] targetItems,
    ItemSpec pathFilter
)
public:
array<ExtendedMerge^>^ TrackMerges(
    array<int>^ sourceChangesetIds, 
    ItemIdentifier^ sourceItem, 
    array<ItemIdentifier^>^ targetItems, 
    ItemSpec^ pathFilter
)
member TrackMerges : 
        sourceChangesetIds:int[] * 
        sourceItem:ItemIdentifier * 
        targetItems:ItemIdentifier[] * 
        pathFilter:ItemSpec -> ExtendedMerge[] 
public function TrackMerges(
    sourceChangesetIds : int[], 
    sourceItem : ItemIdentifier, 
    targetItems : ItemIdentifier[], 
    pathFilter : ItemSpec
) : ExtendedMerge[]

Parameters

  • sourceChangesetIds
    Type: array<System.Int32[]

    An array of source changeset IDs.

Return Value

Type: array<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.

Remarks

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.

.NET Framework Security

See Also

Reference

VersionControlServer Class

TrackMerges Overload

Microsoft.TeamFoundation.VersionControl.Client Namespace