convert: handle trailing slashes in filemap better (issue3124) stable
authorMatt Mackall <mpm@selenic.com>
Wed, 23 Nov 2011 16:25:44 -0600
branchstable
changeset 15565 3992c7df85f2
parent 15564 e45dadde2761
child 15566 7786b7dfbc46
child 15570 0f208626d503
child 15579 6c5e6ebe0812
convert: handle trailing slashes in filemap better (issue3124)
hgext/convert/filemap.py
--- a/hgext/convert/filemap.py	Wed Nov 23 14:24:56 2011 -0800
+++ b/hgext/convert/filemap.py	Wed Nov 23 16:25:44 2011 -0600
@@ -99,6 +99,8 @@
             if newpre == '.':
                 return suf
             if suf:
+                if newpre.endswith('/'):
+                    return newpre + suf
                 return newpre + '/' + suf
             return newpre
         return name