# HG changeset patch # User Brendan Cully # Date 1186275757 25200 # Node ID 35f67dd712d0e530104475ec9c08553b8c4d39bb # Parent 12930b97a729dfc333bbe44e99d66899b13fc793 convert: svn: ensure leading / is removed from paths in _find_children (broken in 2bd996d0aaf8) diff -r 12930b97a729 -r 35f67dd712d0 hgext/convert/subversion.py --- 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()]