如果我更新到旧版本:
svn update -rXXXX
然后尝试列出日志:
svn log
我只看到修订版XXXX
之前的条目。我怎样才能看到新的?
答案 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