mirror of
https://github.com/UberGames/GtkRadiant.git
synced 2024-11-22 20:02:42 +00:00
2a71ead9d9
- Fixed Bug #1078 (sogined) git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@139 8a3a26a2-13c4-0310-b231-cf6edde360e5
16 lines
294 B
Python
16 lines
294 B
Python
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")
|
|
for word in line.split():
|
|
try:
|
|
return int(word)
|
|
except:
|
|
pass
|
|
|