aboutsummaryrefslogtreecommitdiffstats
path: root/RepSys/svn.py
diff options
context:
space:
mode:
authorBogdano Arendartchuk <bogdano@mandriva.org>2007-06-21 21:12:39 +0000
committerBogdano Arendartchuk <bogdano@mandriva.org>2007-06-21 21:12:39 +0000
commit5dcc5a423c1945f68c3375373630a3e044a75414 (patch)
tree11a81eed1b2c9ffe5b738af1569f61b34eee3372 /RepSys/svn.py
parent307dad5dc74d6ee279ec4f7bdbeb4d8ed0f78ca7 (diff)
downloadmgarepo-5dcc5a423c1945f68c3375373630a3e044a75414.tar
mgarepo-5dcc5a423c1945f68c3375373630a3e044a75414.tar.gz
mgarepo-5dcc5a423c1945f68c3375373630a3e044a75414.tar.bz2
mgarepo-5dcc5a423c1945f68c3375373630a3e044a75414.tar.xz
mgarepo-5dcc5a423c1945f68c3375373630a3e044a75414.zip
Make getsrpm use the revision number from svn.export
It also changed the previous behavior of using the last changed rev. from the "revision used in the command line"
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