Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def fetchrev(svndir):
- '''Define svndir. Assuming SVN is installed. SVN commands should be the same crossplatform'''
- from subprocess import check_output
- svncmd = "svn info --revision HEAD " + svndir ## Space needed
- revision = check_output(svncmd).split() ## Make list
- revnum = revision.index("Revision:") + 1
- return revision[revnum]
Advertisement