Add support for SVN in lastcommit
authorJulien Valroff <julien@kirya.net>
Sun, 5 Jun 2011 11:15:25 +0000 (13:15 +0200)
committerJulien Valroff <julien@kirya.net>
Sun, 5 Jun 2011 11:15:25 +0000 (13:15 +0200)
lastcommit

index bf7159f..e1788c9 100755 (executable)
@@ -31,6 +31,10 @@ elif [ -d .bzr ]; then
     echo -n "bzr"
     bzr log -r-1 | grep ^revno: | sed 's/revno: //'
 
+elif [ -d .svn ]; then
+    echo -n "svn"
+    svn log -l1 | awk 'NR==2' | awk '{print $1}' | sed 's/^r//'
+
 else
 
     echo "Not in a VCS repository or unsupported VCS"