Mercurial > hg-stable
changeset 5114:35f67dd712d0
convert: svn: ensure leading / is removed from paths in _find_children (broken in 2bd996d0aaf8)
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Sat, 04 Aug 2007 18:02:37 -0700 |
parents | 12930b97a729 |
children | 5023af9fcba4 |
files | hgext/convert/subversion.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/convert/subversion.py Sat Aug 04 12:26:48 2007 -0700 +++ b/hgext/convert/subversion.py Sat Aug 04 18:02:37 2007 -0700 @@ -624,9 +624,10 @@ return data, mode def _find_children(self, path, revnum): + path = path.strip('/') 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('/')]).strip('/') + rpath = '/'.join([self.base, path]).strip('/') return ['%s/%s' % (path, x) for x in svn.client.ls(rpath, optrev, True, self.ctx, pool).keys()]