Handy Alias: Grab latest svn log
I keep having the occasion to view the log comments for the current revision in my SVN repository. This means:
- Knowing the number of the current revision,
- Passing this to
1svn log -r
Instead of doing that by hand, I made an alias to do it for me:
alias svnlastlog="svn info | grep 'Last Changed Rev' | cut -d ' ' -f 4 | xargs -I mystr svn log -r mystr"
So if you are in a directory that is versioned, you just run that command, and (after being prompted to authenticate to your repo, if applicable), out comes the log entry for the current revision. Perhaps there is a built in command to do this already, but I could not find it via Google and the SVN Book.
Possibly Related (no promises):
Related posts brought to you by Yet Another Related Posts Plugin.
October 7, 2007 - 3:33 PM








Glen
April 6, 2008 | 3:04 AMNice and thank you for sharing the snippet.
Internet Banking
February 4, 2010 | 2:17 AMThat was intriguing . I like your quality that you put into your post . Please do move forward with more similar to this.