Mercurial > hg-stable
changeset 4787:a67f185d0474
convert: svn: use a separate mempool for each ls in the 1.4 fallback path
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Tue, 03 Jul 2007 10:55:46 -0700 |
parents | 4bd0b2f862ba |
children | 62e1b6412b62 |
files | hgext/convert/subversion.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/convert/subversion.py Tue Jul 03 04:18:24 2007 -0700 +++ b/hgext/convert/subversion.py Tue Jul 03 10:55:46 2007 -0700 @@ -500,11 +500,12 @@ # SWIG python bindings for getdir are broken up to at least 1.4.3 if not hasattr(self, 'client_ctx'): self.client_ctx = svn.client.create_context() + pool = Pool() optrev = svn.core.svn_opt_revision_t() optrev.kind = svn.core.svn_opt_revision_number optrev.value.number = revnum rpath = '/'.join([self.base, path]).strip('/') - return ['%s/%s' % (path, x) for x in svn.client.ls(rpath, optrev, True, self.client_ctx).keys()] + return ['%s/%s' % (path, x) for x in svn.client.ls(rpath, optrev, True, self.client_ctx, pool).keys()] if hasattr(self, '_find_children_fallback'): return _find_children_fallback(path, revnum)