public interface SphereBranch
SphereBranch represents a single stream of changes in the versioning system.
Branches work much like in document versioning systems, such as GIT or SVN. Every branch has an
"origin" (or "parent") branch from which it was created, as well as a
"branching timestamp" that reflects the point in time from which this branch
was created. There is one special branch, which is the master
branch. It is the transitive origin of all other branches. It always has the same name, an origin of
null, and a branching timestamp of zero. Unlike other branches, the master branch is created by default
and always exists.
| Modifier and Type | Method and Description |
|---|---|
long |
getBranchingTimestamp()
Returns the timestamp at which this branch was created from the origin (parent) branch.
|
java.lang.String |
getName()
Returns the name of this branch, which also acts as its unique identifier.
|
long |
getNow()
Returns the "now" timestamp on this branch, i.e. the timestamp at which the last full commit was successfully
executed.
|
SphereBranch |
getOrigin()
Returns the branch from which this branch originates.
|
java.util.List<SphereBranch> |
getOriginsRecursive()
Returns the list of direct and transitive origin branches.
|
java.lang.String getName()
null. Branch names are unique.SphereBranch getOrigin()
null if this branch is the master branch.long getBranchingTimestamp()
java.util.List<SphereBranch> getOriginsRecursive()
The first entry in the list will always be the master branch.
The remaining entries are the descendants of the previous branch in the list which are also direct or transitive
origins of the current branch.
For example, if there were the following branching actions:
C.getOriginsRecursive() is invoked, then the returned list will consist of
[master, A, B] (in exactly this order).null. The returned list is a calculated object which may
freely be modified without changing any internal state.long getNow()