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
'Déclaration
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.
- sourceItem
Type: Microsoft.TeamFoundation.VersionControl.Client.ItemIdentifier
Source 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.ItemSpec
Optional path filter to reduce the scope of source item.
- 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
- 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.