git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@11
8a3a26a2-13c4-0310-b231-
cf6edde360e5
--- /dev/null
+import os
+import sys
+
+def getRevision(path):
+ cmd = os.popen("svn info " + path)
+
+ while True:
+ line = cmd.readline()
+ if line == "":
+ raise Exception("failed to obtain revision number")
+ if line.startswith("Revision: "):
+ revision = int(line[10:])
+ return revision
+
\ No newline at end of file