0

如果我更新到旧版本:

svn update -rXXXX

然后尝试列出日志:

svn log

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

4

1 回答 1

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
于 2016-02-16T14:21:23.403 回答