Skip to content

Instantly share code, notes, and snippets.

@mad4j
Last active December 31, 2015 12:49
Show Gist options
  • Save mad4j/7988717 to your computer and use it in GitHub Desktop.
Save mad4j/7988717 to your computer and use it in GitHub Desktop.
recovering revision number from SVN repository
#returns version (append 'M' if local workspace is modified)
svnversion
#otherwise
svn info <repo-url> --username <user> | grep 'Last Changed Rev' | awk '{ print $4; }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment