Tokens


This page lists the tokens can be used with each source control system.

All

Token Replaced With Example
$DATE$ Current date 2010-10-16
$DATETIME$ Current date and time 2010-10-16T23:04:26
$UTCDATE$ Current UTC date 2010-10-16
$UTCDATETIME$ Current UTC date and time 2010-10-16T12:04:26

Mercurial

Token Replaced With Example
$REVNUM$ Current revision number 1437
$REVNUM_MOD(x)$ Current revision number, modulus x 37
$REVNUM_DIV(x)$ Current revision number, divided by x, and truncated 14
$REVID$ Current revision ID 9ad6bbbcd1c5
$DIRTY$ 1 if the folder contains uncommitted changes, otherwise 0 0
$BRANCH$ Branch name of the current revision default
$TAGS$ Tag names of the current revision, separated by spaces tip

Subversion

Token Replaced With Example
$REVNUM$ Highest revision number in the folder 1437
$REVNUM_MOD(x)$ Highest revision number in the folder, modulus x 37
$REVNUM_DIV(x)$ Highest revision number in the folder, divided by x, and truncated 14
$MIXED$ 1 if the folder contains mixed update revisions, otherwise 0 0
$DIRTY$ 1 if the folder contains uncommitted changes, otherwise 0 0
$SUBDIR("x")$ If the folder's repository path contains a folder "x", this returns the name of the folder after that in the path, otherwise empty string. For example, if your folder's repository path is /branches/1.0-stable/MyProject, $SUBDIR("branches") will return "1.0-stable". 1.0-stable
$BRANCH$ Branch name if this is a branch, otherwise empty string. Same as $SUBDIR("branches")$. 1.0-stable
$TAG$ Tag name if this is a tag, otherwise empty string. Same as $SUBDIR("tags")$. 1.0.5

Last edited Oct 16, 2010 at 12:07 PM by jdaley, version 3

Comments

No comments yet.