author | Matt Mackall <mpm@selenic.com> |
Sat, 16 Dec 2006 14:41:34 -0600 | |
changeset 3911 | fe075ddf3272 |
parent 3910 | 4bc5a2405b12 |
child 3912 | f2c4a2ee59ed |
child 3913 | dbd828167384 |
--- a/contrib/convert-repo Sat Dec 16 14:35:14 2006 -0600 +++ b/contrib/convert-repo Sat Dec 16 14:41:34 2006 -0600 @@ -295,7 +295,8 @@ nrev = self.dest.puttags(ctags) # write another hash correspondence to override the previous # one so we don't end up with extra tag heads - file(self.mapfile, "a").write("%s %s\n" % (c, nrev)) + if nrev: + file(self.mapfile, "a").write("%s %s\n" % (c, nrev)) gitpath, hgpath, mapfile = sys.argv[1:] if os.path.isdir(gitpath + "/.git"):