关键字替换

如果提供了源文件和目的文件,SubWCRev 会复制源文件到目标文件,执行如下所属的关键字替换:

表 6.2. 列出可用的命令行开关

关键字描述
$WCREV$用工作副本中最高的提交版本来替换
$WCDATE$Replaced with the commit date/time of the highest commit revision. By default, international format is used: yyyy-mm-dd hh:mm:ss. Alternatively, you can specify a custom format which will be used with strftime(), for example: $WCDATE=%a %b %d %I:%M:%S %p$. For a list of available formatting characters, look at the online reference.
$WCNOW$Replaced with the current system date/time. This can be used to indicate the build time. Time formatting is as described above.
$WCRANGE$在工作目录用更新版本范围替换。如果工作目录处于一致的状态,它是一个单一版本。如果工作目录包含混合版本,或者是过时,或者是故意更新到版本,那么这个范围会用象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.
$WCURL$用传递给SubWCRev的工作目录的版本库地址替换。
$WCNOW$Replaced with the current time and date
$WCNOW=Replaced with the current time and date in standard format
$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$Replaced with the lock date
$WCLOCKOWNER$Replaced with the name of the lock owner
$WCLOCKCOMMENT$Replaced with the comment of the lock