Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Workspace.Merge Method (String, String, VersionSpec, VersionSpec, LockLevel, RecursionType, MergeOptionsEx)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Merges the source to the target.

Namespace:  Microsoft.TeamFoundation.VersionControl.Client
Assembly:  Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)
public GetStatus Merge(
	string sourcePath,
	string targetPath,
	VersionSpec versionFrom,
	VersionSpec versionTo,
	LockLevel lockLevel,
	RecursionType recursion,
	MergeOptionsEx mergeOptions
)

Parameters

sourcePath
Type: System.String

The source path of the merge.

targetPath
Type: System.String

The target path of the merge.

versionFrom
Type: Microsoft.TeamFoundation.VersionControl.Client.VersionSpec

The starting version. May be null.

versionTo
Type: Microsoft.TeamFoundation.VersionControl.Client.VersionSpec

The ending version. May be null.

lockLevel
Type: Microsoft.TeamFoundation.VersionControl.Client.LockLevel

The lock level to apply to each item specified by the target.

recursion
Type: Microsoft.TeamFoundation.VersionControl.Client.RecursionType

A flag that specifies the type of recursion.

mergeOptions
Type: Microsoft.TeamFoundation.VersionControl.Common.MergeOptionsEx

One or more of the enum values in MergeOptionsEx.

Return Value

Type: Microsoft.TeamFoundation.VersionControl.Client.GetStatus
A GetStatus object that indicates how many operations, conflicts, errors, and so on occurred when the Get operation was being processed.

The target path of the merge must be mapped.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.