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.
sourceItem
Type: Microsoft.TeamFoundation.VersionControl.Client.ItemIdentifierSource item to track merges from (recursive).
targetItems
Type: array<Microsoft.TeamFoundation.VersionControl.Client.ItemIdentifier[]Target item to track merges to (recursive).
pathFilter
Type: Microsoft.TeamFoundation.VersionControl.Client.ItemSpecOptional path filter to reduce the scope of source item.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.