如何获得所有最近的SVN提交消息的列表?
有时我想重温一下我刚刚提交给SVN的更改,但是不记得涉及到的特定文件或修订号。 所以我想看到最近的提交消息列表,理想情况下包括每个提交中包含的文件。
我图片到我的工作副本的根,并input如下内容,以查看与最近的5个提交相关的消息和文件:
svn log -l5 -v *
不幸的是,这个命令需要一个目标,并且不会接受'*'。 我知道SVN有我想要的信息。 有没有简单的方法来检索它?
你可以使用svn log -l5 -v <URL of your repository>
。 svn info
可以用来获取你的工作拷贝连接到的版本库的根URL。
svn log -q -v --limit N
内部工作副本 (你有WC,不是吗?!)会显示提交消息 (mea culpa,-q supress commit-message输出)的最新N个提交的短列表文件只
日志输出示例 – 回购
>svn log -q -v http://mayorat.ursinecorner.ru:8088/svn/Hello/ -l 5 ------------------------------------------------------------------------ r33 | lazybadger | 2012-02-28 16:10:41 +0600 (Вт, 28 фев 2012) Changed paths: M /trunk/Hello.en.txt ------------------------------------------------------------------------ r32 | lazybadger | 2011-12-27 17:37:31 +0600 (Вт, 27 дек 2011) Changed paths: M /trunk/Hello.de.txt M /trunk/Hello.en.txt ------------------------------------------------------------------------ r31 | lazybadger | 2011-12-27 17:29:00 +0600 (Вт, 27 дек 2011) Changed paths: M /trunk/Hello.de.txt M /trunk/Hello.en.txt M /trunk/Hello.fr.txt ------------------------------------------------------------------------ r30 | lazybadger | 2011-10-19 16:23:52 +0600 (Ср, 19 окт 2011) Changed paths: M /trunk ------------------------------------------------------------------------ r29 | lazybadger | 2011-10-19 16:18:43 +0600 (Ср, 19 окт 2011) Changed paths: M /trunk ------------------------------------------------------------------------
提交消息的Secong日志(已删除-q -v)
>svn log http://mayorat.ursinecorner.ru:8088/svn/Hello/ -l 5 ------------------------------------------------------------------------ r33 | lazybadger | 2012-02-28 16:10:41 +0600 (Вт, 28 фев 2012) | 1 line One more change ------------------------------------------------------------------------ r32 | lazybadger | 2011-12-27 17:37:31 +0600 (Вт, 27 дек 2011) | 1 line Cleanups ------------------------------------------------------------------------ r31 | lazybadger | 2011-12-27 17:29:00 +0600 (Вт, 27 дек 2011) | 1 line Purification ------------------------------------------------------------------------ r30 | lazybadger | 2011-10-19 16:23:52 +0600 (Ср, 19 окт 2011) | 1 line Try fix FS #2 ------------------------------------------------------------------------ r29 | lazybadger | 2011-10-19 16:18:43 +0600 (Ср, 19 окт 2011) | 1 line
如果我检查从根和svnlogin回购腐败,结果将不会有所不同
Hello>svn log -q -v -l 5 ------------------------------------------------------------------------ r33 | lazybadger | 2012-02-28 16:10:41 +0600 (Вт, 28 фев 2012) Changed paths: M /trunk/Hello.en.txt ------------------------------------------------------------------------ r32 | lazybadger | 2011-12-27 17:37:31 +0600 (Вт, 27 дек 2011) Changed paths: M /trunk/Hello.de.txt M /trunk/Hello.en.txt ------------------------------------------------------------------------ r31 | lazybadger | 2011-12-27 17:29:00 +0600 (Вт, 27 дек 2011) Changed paths: M /trunk/Hello.de.txt M /trunk/Hello.en.txt M /trunk/Hello.fr.txt ------------------------------------------------------------------------ r30 | lazybadger | 2011-10-19 16:23:52 +0600 (Ср, 19 окт 2011) Changed paths: M /trunk ------------------------------------------------------------------------ r29 | lazybadger | 2011-10-19 16:18:43 +0600 (Ср, 19 окт 2011) Changed paths: M /trunk