无需更新即可执行SVN日志

时间:2012-04-04 16:51:56

标签: svn logging

似乎执行svn log给了我过时的信息,除非我先做svn update。但有时候我不想更新。有没有办法在不更新的情况下获取最新日志(至少关于我自己的提交)?

1 个答案:

答案 0 :(得分:3)

尝试:

svn log -r 1:HEAD /path/to/working/copy

根据您的喜好更换修订号。

Valid options:
  -r [--revision] ARG      : ARG (some commands also take ARG1:ARG2 range)
                             A revision argument can be one of:
                                NUMBER       revision number
                                '{' DATE '}' revision at start of the date
                                'HEAD'       latest in repository
                                'BASE'       base rev of item's working copy
                                'COMMITTED'  last commit at or before BASE
                                'PREV'       revision just before COMMITTED