Commit f9307c78 authored by Jérome Perrin's avatar Jérome Perrin

return Revision wrappers when pysvn methods returns a revision


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24782 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 58cf4048
...@@ -238,8 +238,9 @@ try: ...@@ -238,8 +238,9 @@ try:
def checkin(self, path, log_message, recurse): def checkin(self, path, log_message, recurse):
try: try:
return self.client.checkin(path, log_message=log_message \ return Revision(self.client.checkin(path,
or 'none', recurse=recurse) log_message=log_message or 'none',
recurse=recurse))
except pysvn.ClientError, error: except pysvn.ClientError, error:
excep = self.getException() excep = self.getException()
if excep: if excep:
...@@ -249,7 +250,7 @@ try: ...@@ -249,7 +250,7 @@ try:
def update(self, path): def update(self, path):
try: try:
return self.client.update(path) return [Revision(x) for x in self.client.update(path)]
except pysvn.ClientError, error: except pysvn.ClientError, error:
excep = self.getException() excep = self.getException()
if excep: if excep:
......
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