请参阅svn update to revision后登录cmd行

时间:2016-02-16 14:01:03

标签: svn command-line revision svn-update

如果我更新到旧版本:

svn update -rXXXX

然后尝试列出日志:

svn log

我只看到修订版XXXX之前的条目。我怎样才能看到新的?

1 个答案:

答案 0 :(得分:1)

如果未指定,

svn log将使用工作副本的修订版。从帮助文本:

log: Show the log messages for a set of revision(s) and/or path(s).
usage: 1. log [PATH][@REV]
       2. log URL[@REV] [PATH...]

  1. Print the log messages for the URL corresponding to PATH
     (default: '.'). If specified, REV is the revision in which the
     URL is first looked up, and the default revision range is REV:1.
     If REV is not specified, the default revision range is BASE:1,
     since the URL might not exist in the HEAD revision.

请注意最后一句,并将“BASE”定义为“项目工作副本的基本转换”(同样来自帮助文本)。因此,只需将“HEAD”作为您想要日志的修订版传递:

svn log -r HEAD:1