Version

A version in the format "major.update.bugfix-prerelease+buildmetadata" or "~master", to identify trunk, or "~branch_name" to identify a branch. Both Version types starting with "~" refer to the head revision of the corresponding branch.

Except for the "~branch" Version format, this follows the Semantic Versioning Specification (SemVer) 2.0.0-rc.2.

Constructors

this
this(string vers)
Undocumented in source.

Members

Functions

opCmp
int opCmp(Version other)

Comparing Versions is generally possible, but comparing Versions identifying branches other than master will fail. Only equality can be tested for these.

opCmp
int opCmp(Version other)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(Version oth)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(Version oth)
Undocumented in source. Be warned that the author may not have intended to support it.
toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

BRANCH_IDENT
BRANCH_IDENT [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
HEAD
HEAD [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
MASTER
MASTER [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
MASTER_STRING
MASTER_STRING [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
RELEASE
RELEASE [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
isBranch
bool isBranch [@property getter]

Returns true, if this version indicates a branch, which is not the trunk.

isMaster
bool isMaster [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
isPreRelease
bool isPreRelease [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Meta