From d84ac920943e07b4dd78b8ee446f23de6859a1fe Mon Sep 17 00:00:00 2001 From: Bogdano Arendartchuk Date: Wed, 6 Jun 2007 20:41:50 +0000 Subject: 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" --- RepSys/svn.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'RepSys/svn.py') 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) -- cgit v1.2.1