##// END OF EJS Templates
convert: svn: ensure leading / is removed from paths in _find_children (broken in 2bd996d0aaf8)
Brendan Cully -
r5114:35f67dd7 default
parent child Browse files
Show More
@@ -624,9 +624,10 b' class convert_svn(converter_source):'
624 return data, mode
624 return data, mode
625
625
626 def _find_children(self, path, revnum):
626 def _find_children(self, path, revnum):
627 path = path.strip('/')
627 pool = Pool()
628 pool = Pool()
628 optrev = svn.core.svn_opt_revision_t()
629 optrev = svn.core.svn_opt_revision_t()
629 optrev.kind = svn.core.svn_opt_revision_number
630 optrev.kind = svn.core.svn_opt_revision_number
630 optrev.value.number = revnum
631 optrev.value.number = revnum
631 rpath = '/'.join([self.base, path.strip('/')]).strip('/')
632 rpath = '/'.join([self.base, path]).strip('/')
632 return ['%s/%s' % (path, x) for x in svn.client.ls(rpath, optrev, True, self.ctx, pool).keys()]
633 return ['%s/%s' % (path, x) for x in svn.client.ls(rpath, optrev, True, self.ctx, pool).keys()]
General Comments 0
You need to be logged in to leave comments. Login now