diff hgext/convert/filemap.py @ 15565:3992c7df85f2 stable

convert: handle trailing slashes in filemap better (issue3124)
author Matt Mackall <mpm@selenic.com>
date Wed, 23 Nov 2011 16:25:44 -0600
parents 2433525a9e1e
children 5146de7bce96 32b2e6d641e4
line wrap: on
line diff
--- 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