Mercurial > hg
diff hgext/convert/hg.py @ 25305:884ef09cf658 stable
convert: properly pass null ids through .hgtags (issue4678)
Mercurial uses tags of null to mark deletions, but convert was
silently discarding these because it had no mapping for them. Thus, it
was resurrecting deleted tags.
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Wed, 27 May 2015 14:28:29 -0500 |
parents | 216fa1ba9993 |
children | daf9f7ee2a5c |
line wrap: on
line diff
--- a/hgext/convert/hg.py Tue May 26 13:02:28 2015 -0700 +++ b/hgext/convert/hg.py Wed May 27 14:28:29 2015 -0500 @@ -128,7 +128,10 @@ continue revid = revmap.get(source.lookuprev(s[0])) if not revid: - continue + if s[0] == hex(nullid): + revid = s[0] + else: + continue fp.write('%s %s\n' % (revid, s[1])) return fp.getvalue()