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]
Comments
0 B
|👍
/👎