Version

A version in the format "major.update.bugfix-prerelease+buildmetadata" according to Semantic Versioning Specification v2.0.0.

(deprecated): This also supports a format like "~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. This is subject to be removed soon.

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.
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.
UNKNOWN
UNKNOWN [@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.
isUnknown
bool isUnknown [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Meta