convert: svn: use a separate mempool for each ls in the 1.4 fallback path
authorBrendan Cully <brendan@kublai.com>
Tue, 03 Jul 2007 10:55:46 -0700
changeset 4787 a67f185d0474
parent 4786 4bd0b2f862ba
child 4788 62e1b6412b62
convert: svn: use a separate mempool for each ls in the 1.4 fallback path
hgext/convert/subversion.py
--- 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)