Index: scm.py |
diff --git a/scm.py b/scm.py |
index 313ff783911c5f4b55f8ce4e8ffb91e92396a712..1b3b72f2c2cb731ac72a93861039ab108387d199 100644 |
--- a/scm.py |
+++ b/scm.py |
@@ -494,6 +494,17 @@ class SVN(object): |
return dom.getElementsByTagName('entry')[0].getAttribute('revision') |
@staticmethod |
+ def CaptureBaseRevision(cwd): |
+ """Get the base revision of a SVN repository. |
+ |
+ Returns: |
+ Int base revision |
+ """ |
+ info = SVN.Capture(["info", "--xml"], cwd) |
+ dom = xml.dom.minidom.parseString(info) |
+ return dom.getElementsByTagName('entry')[0].getAttribute('revision') |
+ |
+ @staticmethod |
def CaptureStatus(files): |
"""Returns the svn 1.5 svn status emulated output. |