convert: svn: ensure leading / is removed from paths in _find_children (broken in 2bd996d0aaf8)
authorBrendan Cully <brendan@kublai.com>
Sat, 04 Aug 2007 18:02:37 -0700
changeset 5114 35f67dd712d0
parent 5111 12930b97a729
child 5115 5023af9fcba4
convert: svn: ensure leading / is removed from paths in _find_children (broken in 2bd996d0aaf8)
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()]