之后,您将解析结果svn info
并svn log -q REPO-URL/tags/ -v -l 1
检测新标签的出现,您可以切换|重新定位+更新或 mkdir+checkout
样本:
标签 1.0
>svn info
Path: .
Working Copy Root Path: Z:\1.0
URL: http://mayorat.ursinecorner.ru:8088/svn/Hello/tags/1.0
Repository Root: http://mayorat.ursinecorner.ru:8088/svn/Hello
Repository UUID: 65c3f143-cc60-1d4e-9546-1f0378d96c08
Revision: 34
Node Kind: directory
Schedule: normal
Last Changed Author: lazybadger
Last Changed Rev: 11
Last Changed Date: 2010-07-17 04:45:05 +0600 (Сб, 17 июл 2010)
日志
>svn log -q http://mayorat.ursinecorner.ru:8088/svn/Hello/tags/ -v -l 1
------------------------------------------------------------------------
r22 | lazybadger | 2010-07-17 05:31:00 +0600 (Сб, 17 июл 2010)
Changed paths:
A /tags/1.1 (from /trunk:21)
------------------------------------------------------------------------
或 XML 版本
>svn log -q http://mayorat.ursinecorner.ru:8088/svn/Hello/tags/ -v -l 1 --xml --incremental
<logentry
revision="22">
<author>lazybadger</author>
<date>2010-07-16T23:31:00.513125Z</date>
<paths>
<path
text-mods="false"
kind="dir"
copyfrom-path="/trunk"
copyfrom-rev="21"
action="A"
prop-mods="true">/tags/1.1</path>
</paths>
</logentry>
在任何情况下,从日志中提取修订号,如果它超过 WC 的修订(“Last Changed Rev”):我们必须有新版本。URL 是 Repository Root+(来自 XML 日志的路径值 | 使用文本日志中的 /tags 解析的行)