Summary
Creates new branches for Surround SCM.
- Assembly
- NAnt
.Contrib .dll - Namespace
- NAnt
.Contrib .Tasks .SurroundSCM - Base Types
-
- ExternalProgramBase
- SSCMTask
graph BT
Type-->Base0["SSCMTask"]
click Base0 "/api/NAnt.Contrib.Tasks.SurroundSCM/SSCMTask"
Base0-->Base1["ExternalProgramBase"]
Type["SSCMBranch"]
class Type type-node
Syntax
[TaskName("sscmbranch")]
public class SSCMBranch : SSCMTask
Examples
Create a new Baseline branch 'Widget 1.0' from branch 'Mainline', repository 'Mainline/Widget' with the given comments. All files are branched at the tip version.
<sscmbranch
serverconnect="localhost:4900"
serverlogin="administrator:"
branch="Widget 1.0"
repository="Mainline/Widget"
parent="Mainline"
comment="Branch for continuing Widget 1.0 development"
type="baseline"
/>
Create a new Workspace branch 'MyWidgetDevelopment' from branch 'Widget 1.0', repository 'Mainline/Widget'. All files are branched at the tip version.
<sscmbranch
serverconnect="localhost:4900"
serverlogin="administrator:"
branch="MyWidgetDevelopment"
repository="Mainline/Widget"
parent="Widget 1.0"
/>
Create a new Snapshot branch 'Build as of 12-1-03' from branch 'Widget 1.0', repository 'Mainline/Widget' with the given comments. All files are branched at their version as of 12-01-03.
<sscmbranch
serverconnect="localhost:4900"
serverlogin="administrator:"
name="Build as of 12-1-03"
repository="Mainline/Widget"
branch="Widget 1.0"
comment="Snapshot of source as it was on December 1st, 2003"
timestamp="2003120300:00:00"
type="snapshot"
/>
Attributes
Type | Description |
---|---|
TaskName |
Properties
Name | Value | Summary |
---|---|---|
Branch | string |
The name of the branch you want to create.
|
ByLabel | string |
Specifies which parent branch file versions are copied into the
child branch.
|
ByTimestamp | string |
Specifies which parent branch file versions are copied into the
child branch. Format is yyyymmddhh:mm:ss. If
NAnt.Contrib.Tasks.SurroundSCM.SSCMBranch.ByLabel
attribute is specified, this parameter is ignored.
|
Comment | string |
Specifies a comment for the branch operation.
|
ExeName | string |
Override ExeName paramater to sscm.exe for Surround SCM.
Inherited from SSCMTask
|
IncludeRemoved | bool |
Include removed files when creating a branch with the
NAnt.Contrib.Tasks.SurroundSCM.SSCMBranch.ByLabel or NAnt.Contrib.Tasks.SurroundSCM.SSCMBranch.ByTimestamp option.
The default is true .
|
ParentBranch | string |
The parent branch you want to create the new, child branch from.
If not specified, the mainline branch is used.
|
ProgramArguments | string |
Gets the command line arguments for the external program.
Inherited from SSCMTask
|
Repository | string |
The full repository path.
|
ServerConnect | string |
The address and port number of the Surround SCM server host computer.
Format is server:port. If not entered, the last saved connection
parameters are used.
Inherited from SSCMTask
|
ServerLogin | string |
The username and password used to login to the Surround SCM server.
Format is username:password. If not entered, the last saved login
parameters are used.
Inherited from SSCMTask
|
Type | string |
Specifies the type of branch you want to create. Possible values are
workspace , baseline , or snapshot . The default is
workspace .
|
Methods
Name | Value | Summary |
---|---|---|
Write |
void |
Writes the task-specific arguments to the specified
System.Text.StringBuilder .
|