VersionControlServer.TrackMerges Method (array<Int32[], ItemIdentifier, array<ItemIdentifier[], ItemSpec, array<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)

Syntax

'Declaration
Public Function TrackMerges ( _
    sourceChangesetIds As Integer(), _
    sourceItem As ItemIdentifier, _
    targetItems As ItemIdentifier(), _
    pathFilter As ItemSpec, _
    <OutAttribute> ByRef partialTargetItems As String() _
) As ExtendedMerge()
public ExtendedMerge[] TrackMerges(
    int[] sourceChangesetIds,
    ItemIdentifier sourceItem,
    ItemIdentifier[] targetItems,
    ItemSpec pathFilter,
    out string[] partialTargetItems
)
public:
array<ExtendedMerge^>^ TrackMerges(
    array<int>^ sourceChangesetIds, 
    ItemIdentifier^ sourceItem, 
    array<ItemIdentifier^>^ targetItems, 
    ItemSpec^ pathFilter, 
    [OutAttribute] array<String^>^% partialTargetItems
)
member TrackMerges : 
        sourceChangesetIds:int[] * 
        sourceItem:ItemIdentifier * 
        targetItems:ItemIdentifier[] * 
        pathFilter:ItemSpec * 
        partialTargetItems:string[] byref -> ExtendedMerge[] 
public function TrackMerges(
    sourceChangesetIds : int[], 
    sourceItem : ItemIdentifier, 
    targetItems : ItemIdentifier[], 
    pathFilter : ItemSpec, 
    partialTargetItems : String[]
) : ExtendedMerge[]

Parameters

  • sourceChangesetIds
    Type: array<System.Int32[]

    An array of source changeset IDs.

  • partialTargetItems
    Type: array<System.String[]%

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

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