]> de.git.xonotic.org Git - xonotic/netradiant.git/blob - svn.py
fixed gcc compile error
[xonotic/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     if line.startswith("Revision: "):
12       revision = int(line[10:])
13       return revision
14