Mercurial > hg
changeset 5133:745cffe59ca8
convert: use '.' as destination name if renaming subdir into root
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Mon, 06 Aug 2007 14:59:00 -0700 |
parents | 78eb03cbe535 |
children | c14968344d19 |
files | hgext/convert/__init__.py |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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