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

VersionControlServer.CreateBranch Method (String, String, VersionSpec, String, String, CheckinNote, PolicyOverrideInfo, Mapping[])

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

Creates a branch on the server and checks it in without downloading the branch to the client.

Namespace:  Microsoft.TeamFoundation.VersionControl.Client
Assembly:  Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)
public int CreateBranch(
	string sourcePath,
	string targetPath,
	VersionSpec version,
	string owner,
	string comment,
	CheckinNote checkinNote,
	PolicyOverrideInfo policyOverride,
	Mapping[] mappings


Type: System.String

Source path of the branch - must be a server path.

Type: System.String

Target path of the branch - must be a server path.

Type: Microsoft.TeamFoundation.VersionControl.Client.VersionSpec

Changeset or DateTime version spec with which to create the branch.

Type: System.String

Owner of the Changeset. If null, defaults to the authenticated user.

Type: System.String

Comment on the Changeset. Can be null.

Type: Microsoft.TeamFoundation.VersionControl.Client.CheckinNote

CheckinNote. Can be null.

Type: Microsoft.TeamFoundation.VersionControl.Client.PolicyOverrideInfo

PolicyOverrideInfo. Can be null.

Type: Microsoft.TeamFoundation.VersionControl.Client.Mapping[]

An array of mappings under the target path to include or exclude from the branch.

Return Value

Type: System.Int32
Changeset identifier for the check in of the branch.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.