498 |
498 |
499 def _find_children_fallback(path, revnum): |
499 def _find_children_fallback(path, revnum): |
500 # SWIG python bindings for getdir are broken up to at least 1.4.3 |
500 # SWIG python bindings for getdir are broken up to at least 1.4.3 |
501 if not hasattr(self, 'client_ctx'): |
501 if not hasattr(self, 'client_ctx'): |
502 self.client_ctx = svn.client.create_context() |
502 self.client_ctx = svn.client.create_context() |
|
503 pool = Pool() |
503 optrev = svn.core.svn_opt_revision_t() |
504 optrev = svn.core.svn_opt_revision_t() |
504 optrev.kind = svn.core.svn_opt_revision_number |
505 optrev.kind = svn.core.svn_opt_revision_number |
505 optrev.value.number = revnum |
506 optrev.value.number = revnum |
506 rpath = '/'.join([self.base, path]).strip('/') |
507 rpath = '/'.join([self.base, path]).strip('/') |
507 return ['%s/%s' % (path, x) for x in svn.client.ls(rpath, optrev, True, self.client_ctx).keys()] |
508 return ['%s/%s' % (path, x) for x in svn.client.ls(rpath, optrev, True, self.client_ctx, pool).keys()] |
508 |
509 |
509 if hasattr(self, '_find_children_fallback'): |
510 if hasattr(self, '_find_children_fallback'): |
510 return _find_children_fallback(path, revnum) |
511 return _find_children_fallback(path, revnum) |
511 |
512 |
512 self.reparent("/" + path) |
513 self.reparent("/" + path) |