mirror of
https://github.com/UberGames/GtkRadiant.git
synced 2024-11-10 06:31:41 +00:00
added missing svn python module
git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@11 8a3a26a2-13c4-0310-b231-cf6edde360e5
This commit is contained in:
parent
98a12d18d7
commit
4ece242d0b
1 changed files with 14 additions and 0 deletions
14
svn.py
Normal file
14
svn.py
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
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
|
||||||
|
|
Loading…
Reference in a new issue