The ICCBranch interface represents the Rational® ClearCase® branch object.
Within Rational ClearCase source control, the versions of a particular file or directory element are organized into a version tree. Every element has a \main branch. Users can develop in parallel on a particular source-controlled file or directory by creating from any existing branch a new branch that represents a new stream of changes to the underlying file system object.
Requests the master replica for this branch be set to the current VOB replica
Gets the version from which this branch sprouts
Read-only property
Property BranchPointVersion As CCVersion
ICCVersionPtr GetBranchPointVersion();
Note that the \main branch has no branch point version; attempting to get this property for \main results in an error.
Member of: ICCBranch interface
Locks this branch
Method
Sub CreateLock([ Comment As String = "" ], [ Obsolete As Boolean = False ], [ ExemptUsersStringArray As Variant ])
HRESULT CreateLock( _bstr_t Comment, VARIANT_BOOL Obsolete, const _variant_t& ExemptUsersStringArray = vtMissing);
Gets the latest version on this branch
Read-only property
Property LatestVersion As CCVersion
Gets the lock on this branch
Read-only property
Property Lock As CCLock
ICCLockPtr GetLock();
Gets the master replica for this branch
Read-only property
Property Master As String
_bstr_t GetMaster();
Removes the branch from its branch point version
Method
Sub Remove([ Comment As String = "" ])
HRESULT Remove(_bstr_t Comment);
Member of: ICCBranch interface
Requests the master replica for this branch be set to the current VOB replica
Method
Sub RequestMaster([ Comment As String = "" ])
HRESULT RequestMaster(_bstr_t Comment);
Access rights in the environment must be configured properly for a RequestMaster call to succeed. Even when RequestMaster succeeds, mastership for the branch has not been transferred to your local replica. See the reqmaster reference page in the IBM Rational ClearCase Command Reference for more information.
Sets the master replica for this branch
Method
Sub SetMaster(Replica As String, [ Comment As String = "" ])
HRESULT SetMaster( _bstr_t Replica, _bstr_t Comment);
Gets the branch type of this branch
Read-only property
Property Type As CCBranchType
ICCBranchTypePtr GetType();
The local copy of the global type, not a handle to the global type, is returned.
Member of: ICCBranch interface
Gets a collection of all versions along this branch
Read-only property
Property Versions As CCVersions