public interface ChronoSphereBranchManager
ChronoSphere repository.
You can get an instance of this class via ChronoSphere.getBranchManager().
| Modifier and Type | Method and Description |
|---|---|
SphereBranch |
createBranch(java.lang.String branchName)
Creates a new child of the master branch with the given name.
|
SphereBranch |
createBranch(java.lang.String branchName,
long branchingTimestamp)
Creates a new child of the master branch with the given name.
|
SphereBranch |
createBranch(java.lang.String parentName,
java.lang.String newBranchName)
Creates a new child of the given parent branch with the given name.
|
SphereBranch |
createBranch(java.lang.String parentName,
java.lang.String newBranchName,
long branchingTimestamp)
Creates a new child of the given parent branch with the given name.
|
boolean |
existsBranch(java.lang.String branchName)
Checks if a branch with the given name exists or not.
|
SphereBranch |
getBranch(java.lang.String branchName)
Returns the branch with the given name.
|
java.util.Set<SphereBranch> |
getBranches()
Returns the set of all existing branches.
|
java.util.Set<java.lang.String> |
getBranchNames()
Returns the name of all existing branches.
|
default SphereBranch |
getMasterBranch()
Returns the master branch.
|
SphereBranch createBranch(java.lang.String branchName)
This will use the head revision as the base revision for the new branch.
branchName - The name of the new branch. Must not be null. Must not refer to an already existing
branch. Branch names must be unique.null.createBranch(String, long),
createBranch(String, String),
createBranch(String, String, long)SphereBranch createBranch(java.lang.String branchName, long branchingTimestamp)
branchName - The name of the new branch. Must not be null. Must not refer to an already existing
branch. Branch names must be unique.branchingTimestamp - The timestamp at which to branch away from the master branch. Must not be negative. Must be less than
or equal to the timestamp of the latest commit on the master branch.null.createBranch(String),
createBranch(String, String),
createBranch(String, String, long)SphereBranch createBranch(java.lang.String parentName, java.lang.String newBranchName)
This will use the head revision of the given parent branch as the base revision for the new branch.
parentName - The name of the parent branch. Must not be null. Must refer to an existing branch.newBranchName - The name of the new child branch. Must not be null. Must not refere to an already
existing branch. Branch names must be unique.null.createBranch(String),
createBranch(String, long),
createBranch(String, String, long)SphereBranch createBranch(java.lang.String parentName, java.lang.String newBranchName, long branchingTimestamp)
parentName - The name of the parent branch. Must not be null. Must refer to an existing branch.newBranchName - The name of the new child branch. Must not be null. Must not refere to an already
existing branch. Branch names must be unique.branchingTimestamp - The timestamp at which to branch away from the parent branch. Must not be negative. Must be less than
or equal to the timestamp of the latest commit on the parent branch.null.createBranch(String),
createBranch(String, long),
createBranch(String, String, long)boolean existsBranch(java.lang.String branchName)
branchName - The branch name to check. Must not be null.true if there is an existing branch with the given name, otherwise false.SphereBranch getBranch(java.lang.String branchName)
branchName - The name of the branch to retrieve. Must not be null. Must refer to an existing branch.null.default SphereBranch getMasterBranch()
null.java.util.Set<java.lang.String> getBranchNames()
null.java.util.Set<SphereBranch> getBranches()
null.