]> icculus.org git repositories - divverent/netradiant.git/blob - svn.py
changelog cleanup
[divverent/netradiant.git] / svn.py
1 import os
2 import sys
3
4 def getRevision(path):
5   cmd = os.popen("svn info " + path)
6
7   while True:
8     line = cmd.readline()
9     if line == "":
10       raise Exception("failed to obtain revision number")
11     for word in line.split():
12       try:
13         return int(word)
14       except:
15         pass
16