mirror of
https://github.com/UberGames/GtkRadiant.git
synced 2024-11-26 22:01:38 +00:00
14 lines
298 B
Python
14 lines
298 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")
|
||
|
if line.startswith("Revision: "):
|
||
|
revision = int(line[10:])
|
||
|
return revision
|
||
|
|