Mercurial > hg
comparison hgext/convert/subversion.py @ 4770:4526ef8c47b2
convert: svn: fix fallback directory listing code when importing a submodule
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Sun, 01 Jul 2007 22:21:05 -0700 |
parents | 81b170c41986 |
children | e2292928cbe6 |
comparison
equal
deleted
inserted
replaced
4769:81b170c41986 | 4770:4526ef8c47b2 |
---|---|
476 if not hasattr(self, 'client_ctx'): | 476 if not hasattr(self, 'client_ctx'): |
477 self.client_ctx = svn.client.create_context() | 477 self.client_ctx = svn.client.create_context() |
478 optrev = svn.core.svn_opt_revision_t() | 478 optrev = svn.core.svn_opt_revision_t() |
479 optrev.kind = svn.core.svn_opt_revision_number | 479 optrev.kind = svn.core.svn_opt_revision_number |
480 optrev.value.number = revnum | 480 optrev.value.number = revnum |
481 rpath = '/'.join([self.url, path]).strip('/') | 481 rpath = '/'.join([self.base, path]).strip('/') |
482 return ['%s/%s' % (path, x) for x in svn.client.ls(rpath, optrev, True, self.client_ctx).keys()] | 482 return ['%s/%s' % (path, x) for x in svn.client.ls(rpath, optrev, True, self.client_ctx).keys()] |
483 | 483 |
484 if hasattr(self, '_find_children_fallback'): | 484 if hasattr(self, '_find_children_fallback'): |
485 return _find_children_fallback(path, revnum) | 485 return _find_children_fallback(path, revnum) |
486 | 486 |