Commit c3fe8bf0 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Due to API changes and possibly a bug in pysvn 1.7.x, revert does not work...

Due to API changes and possibly a bug in pysvn 1.7.x, revert does not work recursively with recurse=True on pysvn 1.7.x. So try to use pysvn.depth.infinity, if available.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31235 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 837ec744
......@@ -305,6 +305,15 @@ try:
return diff
def revert(self, path, recurse=False):
try:
depth = pysvn.depth.infinity
except AttributeError:
depth = None
if depth is not None:
try:
return self.client.revert(path, depth=depth)
except TypeError:
pass
return self.client.revert(path, recurse)
def switch(self, path, url):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment