hgext/convert/subversion.py
changeset 13653 30a0e3519f69
parent 13530 5f69af0d2fb3
parent 13651 9777df929035
child 13690 af331f557942
--- a/hgext/convert/subversion.py	Mon Mar 14 22:37:50 2011 +0100
+++ b/hgext/convert/subversion.py	Tue Mar 15 16:53:46 2011 -0500
@@ -866,7 +866,9 @@
         pool = Pool()
         rpath = '/'.join([self.baseurl, urllib.quote(path)]).strip('/')
         entries = svn.client.ls(rpath, optrev(revnum), True, self.ctx, pool)
-        return ((path + '/' + p) for p, e in entries.iteritems()
+        if path:
+            path += '/'
+        return ((path + p) for p, e in entries.iteritems()
                 if e.kind == svn.core.svn_node_file)
 
     def getrelpath(self, path, module=None):