convert: use '.' as destination name if renaming subdir into root
authorBryan O'Sullivan <bos@serpentine.com>
Mon, 06 Aug 2007 14:59:00 -0700
changeset 5133 745cffe59ca8
parent 5132 78eb03cbe535
child 5134 c14968344d19
convert: use '.' as destination name if renaming subdir into root
hgext/convert/__init__.py
--- a/hgext/convert/__init__.py	Mon Aug 06 14:17:05 2007 -0700
+++ b/hgext/convert/__init__.py	Mon Aug 06 14:59:00 2007 -0700
@@ -339,7 +339,10 @@
         if not inc or exc:
             return None
         newpre, pre, suf = self.lookup(name, self.rename)
+        print 'XXX', (newpre, pre, suf)
         if newpre:
+            if newpre == '.':
+                return suf
             if suf:
                 return newpre + '/' + suf
             return newpre