Last active
December 31, 2015 12:49
-
-
Save mad4j/7988717 to your computer and use it in GitHub Desktop.
recovering revision number from SVN repository
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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