aboutsummaryrefslogtreecommitdiffstats
path: root/RepSys/svn.py
diff options
context:
space:
mode:
authorBogdano Arendartchuk <bogdano@mandriva.org>2007-06-06 20:41:50 +0000
committerBogdano Arendartchuk <bogdano@mandriva.org>2007-06-06 20:41:50 +0000
commitd84ac920943e07b4dd78b8ee446f23de6859a1fe (patch)
tree9891d421b977e84894b38ea76ebba8ea8148ce14 /RepSys/svn.py
parentb2ce8ef1c40f7c58f4bb4629b5b5e95ce8c252d2 (diff)
downloadmgarepo-d84ac920943e07b4dd78b8ee446f23de6859a1fe.tar
mgarepo-d84ac920943e07b4dd78b8ee446f23de6859a1fe.tar.gz
mgarepo-d84ac920943e07b4dd78b8ee446f23de6859a1fe.tar.bz2
mgarepo-d84ac920943e07b4dd78b8ee446f23de6859a1fe.tar.xz
mgarepo-d84ac920943e07b4dd78b8ee446f23de6859a1fe.zip
Frontported fixes in mirror support from repsys-1.6
- fixed bad URLs being used when checking out from mirrors - "switch" subcommand to ease switching between mirror and real repositories - smarter "ci"
Diffstat (limited to 'RepSys/svn.py')
-rw-r--r--RepSys/svn.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/RepSys/svn.py b/RepSys/svn.py
index 2fe9ad1..575651f 100644
--- a/RepSys/svn.py
+++ b/RepSys/svn.py
@@ -157,6 +157,19 @@ class SVN:
def exists(self, path):
return self.ls(path, noerror=1) is not None
+ def status(self, *args, **kwargs):
+ # add one keywork "silent" that workaround the strange behavior of
+ # pysvn's get_all, which seems to be broken, this way we also have
+ # the same interface of svn.py from repsys 1.6.x
+ meth = self._cllient_wrap("status")
+ silent = kwargs.pop("silent", None)
+ st = meth(*args, **kwargs)
+ if silent:
+ unversioned = pysvn.wc_status_kind.unversioned
+ st = [entry for entry in st
+ if entry.text_status is not unversioned]
+ return st
+
def diff(self, *args, **kwargs):
head = pysvn.Revision(pysvn.opt_revision_kind.head)
revision1 = kwargs.pop("revision1", head)