convert: svn: ensure leading / is removed from paths in _find_children (broken in
2bd996d0aaf8)
--- 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()]