aboutsummaryrefslogtreecommitdiffstats
path: root/RepSys/svn.py
diff options
context:
space:
mode:
Diffstat (limited to 'RepSys/svn.py')
-rw-r--r--RepSys/svn.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/RepSys/svn.py b/RepSys/svn.py
index 8589c4a..683a691 100644
--- a/RepSys/svn.py
+++ b/RepSys/svn.py
@@ -97,9 +97,12 @@ class SVN:
return pysvn.Revision(*args)
makerev = staticmethod(makerev)
- def revision(self, url):
+ def revision(self, url, last_changed=False):
infos = self._client.info2(url, recurse=False)
- revnum= infos[0][1].rev.number
+ if last_changed:
+ revnum = infos[0][1].last_changed_rev.number
+ else:
+ revnum = infos[0][1].rev.number
return revnum
# this override method fixed the problem in pysvn's mkdir which