root/GtkRadiant/tags/1.5-release/svn.py

Revision 139, 294 bytes (checked in by namespace, 2 years ago)

- Added Undo/Redo-Toolbarbuttons (Shaderman)
- Fixed Bug #1078 (sogined)

  • Property svn:eol-style set to native
Line 
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
Note: See TracBrowser for help on using the browser.