comparison hgext/convert/subversion.py @ 4785: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 03844af5ebcd
children 62e1b6412b62
comparison
equal deleted inserted replaced
4784:4bd0b2f862ba 4785:a67f185d0474
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)