How to get a list of all the latest SVN transfer messages?

Sometimes I want to go back to the change that I passed to SVN some time ago, but I don’t remember the specific files or version number. Therefore, I would like to see a list of recent commit messages, ideally including the files included in each commit.

I want to go to the root of my working copy and enter something like the following to see the messages and files associated with the last 5 commits:

svn log -l5 -v * 

Unfortunately, this command requires a single purpose, and it will not accept '*'. I know that SVN has the information I want. Is there an easy way to get it?

+46
svn history
Mar 02 '12 at 16:05
source share
2 answers

You can use svn log -l5 -v <URL of your repository> . svn info can be used to get the root URL of the repository that your working copy is associated with.

+58
Mar 02 2018-12-12T00:
source share

svn log -q -v --limit N inside the working copy (you have a WC, right?) will show a short list of the last N commits with the commit message (mea culpa, -q supress commit-message output) and only files

Log output example - repo

 >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 log for commit-messages (removed -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 

If I checkout repo from root and svn registers in WC-rot, the result will not differ at all

 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 
+15
Mar 02 2018-12-12T00:
source share



All Articles