gtkradiant/svn.py
namespace 2a71ead9d9 - Added Undo/Redo-Toolbarbuttons (Shaderman)
- Fixed Bug #1078 (sogined)



git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@139 8a3a26a2-13c4-0310-b231-cf6edde360e5
2007-01-24 19:40:32 +00:00

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