projects
/
xonotic
/
netradiant.git
/ blob
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
- Disabled useless "deprecated" warnings when using stdc functions
[xonotic/netradiant.git]
/
svn.py
1
import os
2
import sys
3
4
def getRevision(path):
5
cmd = os.popen("svn info " + path)
6
7
while True:
8
line = cmd.readline()
9
if line == "":
10
raise Exception("failed to obtain revision number")
11
for word in line.split():
12
try:
13
return int(word)
14
except:
15
pass
16