Workspace.PendBranch Method (String, String, VersionSpec, LockLevel, Boolean, Boolean, Boolean, String[])
Visual Studio 2012
Schedules a file or folder for branching (branching occurs at check in). Branching a folder is implicitly recursive.
Assembly: Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)
public int PendBranch( string sourcePath, string targetPath, VersionSpec version, LockLevel lockLevel, bool updateDisk, bool detectFolderAtTarget, bool silent, string[] itemPropertyFilters )
Parameters
- sourcePath
- Type: String
the item to branch
- targetPath
- Type: String
the location for the branch that will be created
- version
- Type: Microsoft.TeamFoundation.VersionControl.Client.VersionSpec
the version to branch
- lockLevel
- Type: Microsoft.TeamFoundation.VersionControl.Client.LockLevel
the lock level to apply to each file checked out
- updateDisk
- Type: Boolean
if true, populate the branch on disk; otherwise, the disk is not modified
- detectFolderAtTarget
- Type: Boolean
if true, look for a local folder existing at the target and tell the server if that is the case; otherwise, do not check
- silent
- Type: Boolean
Specifies whether server should return get ops
- itemPropertyFilters
- Type: String[]
Return Value
Type: Int32the number of pending changes
- 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.