+# if that fails, try git-svn
+if [ -z "$revision" ]; then
+ revision=$(git svn info 2>&1|grep Revision|sed 's/Revision: //')
+ stat=$(git status 2>&1|grep 'modified: ');
+fi;
+
+# if that fails, give up
+if [ -z "$revision" ]; then
+ $revision="No SVN or git-svn working copy!"