How to get info: The Author/his Comments for the last subversion revision via command line?

snoopy picture snoopy · Nov 20, 2009 · Viewed 10.8k times · Source

I can't seem to find this one!

So say someone like "Joe" (the Author) submits his code into the svn repository with the message "Fixed this bug and that bug yada yada" (his Comments).

I'd like to get, via the svn.exe command line, the Author and his Comments for the latest revision. Maybe someone can tell me what arguments I could use to achieve this?? Thanks!!!

Answer

artdanil picture artdanil · Nov 20, 2009

The following command will show you information on the latest commit to the svn repository (revision, contributor, date and time, and message):

svn log [PATH] -r HEAD

If you want to find the last commit for the given path/project/file then:

svn log [PATH] -l 1