Created
March 16, 2011 10:20
-
-
Save bka/872285 to your computer and use it in GitHub Desktop.
get current svn revision
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
# From http://ariejan.net/2006/12/13/show-the-current-svn-revision-in-your-rails-app/ | |
def get_revision | |
return `svn info #{RAILS_ROOT} | grep ^Revision` | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment