Manuals

Alteração da palavra-chave

If a source and destination files are supplied, SubWCRev copies source to destination, performing keyword substitution as follows:

Tabela 6.3. Lista de palavras-chave disponíveis

Palavra-chaveDescrição
$WCREV$Replaced with the highest commit revision in the working copy.
$WCREV&$Substituída com a revisão de submissão mais elevada da cópia de trabalho, AND com o valor após o caracter &. Por exemplo: $WCREV&0xFFFF$
$WCREV-$, $WCREV+$Substituída com a revisão de submissão mais elevada da cópia de trabalho, com o valor adicionado ou subtraído após o caracter + ou -. Por exemplo: $WCREV-1000$
$WCDATE$, $WCDATEUTC$Remover ficheiros e pastas ignorados e não-versionados
$WCNOW$, $WCNOWUTC$Replaced with the current system date/time. This can be used to indicate the build time. Time formatting can be used as described for $WCDATE$.
$WCRANGE$Replaced with the update revision range in the working copy. If the working copy is in a consistent state, this will be a single revision. If the working copy contains mixed revisions, either due to being out of date, or due to a deliberate update-to-revision, then the range will be shown in the form 100:200.
$WCMIXED$$WCMIXED?TText:FText$ is replaced with TText if there are mixed update revisions, or FText if not.
$WCMODS$$WCMODS?TText:FText$ is replaced with TText if there are local modifications, or FText if not.
$WCUNVER$$WCUNVER?TText:FText$ is replaced with TText if there are unversioned items in the working copy, or FText if not.
$WCEXTALLFIXED$$WCEXTALLFIXED?TText:FText$ is replaced with TText if all externals are fixed to an explicit revision, or FText if not.
$WCISTAGGED$$WCISTAGGED?TText:FText$ is replaced with TText if the repository URL contains the tags classification pattern, or FText if not.
$WCURL$Replaced with the repository URL of the working copy path passed to SubWCRev.
$WCINSVN$$WCINSVN?TText:FText$ is replaced with TText if the entry is versioned, or FText if not.
$WCNEEDSLOCK$$WCNEEDSLOCK?TText:FText$ is replaced with TText if the entry has the svn:needs-lock property set, or FText if not.
$WCISLOCKED$$WCISLOCKED?TText:FText$ is replaced with TText if the entry is locked, or FText if not.
$WCLOCKDATE$, $WCLOCKDATEUTC$Replaced with the lock date. Time formatting can be used as described for $WCDATE$.
$WCLOCKOWNER$Substituído com o nome do dono do bloqueio
$WCLOCKCOMMENT$Substituído com o comentário do bloqueio
$WCUNVER$$WCUNVER?TText:FText$ is replaced with TText if there are unversioned files or folders in the working copy, or FText if not.


SubWCRev does not directly support nesting of expressions, so for example you cannot use an expression like:

#define SVN_REVISION    "$WCMIXED?$WCRANGE$:$WCREV$$"
      

But you can usually work around it by other means, for example:

#define SVN_RANGE       $WCRANGE$
#define SVN_REV         $WCREV$
#define SVN_REVISION    "$WCMIXED?SVN_RANGE:SVN_REV$"
      

Dica

Some of these keywords apply to single files rather than to an entire working copy, so it only makes sense to use these when SubWCRev is called to scan a single file. This applies to $WCINSVN$, $WCNEEDSLOCK$, $WCISLOCKED$, $WCLOCKDATE$, $WCLOCKOWNER$ and $WCLOCKCOMMENT$.

TortoiseSVN homepage