# HG changeset patch # User Matt Mackall # Date 1166302282 21600 # Node ID f2c4a2ee59ed8cd7fde6fbafe3b7aae59e628fb4 # Parent dd86f99e3c02ba11f8375418cd90e81321973c28# Parent fe075ddf3272c9d0e6916a100ea66960ec743183 Merge with stable diff -r dd86f99e3c02 -r f2c4a2ee59ed contrib/convert-repo --- a/contrib/convert-repo Sat Dec 16 14:40:55 2006 +0100 +++ b/contrib/convert-repo Sat Dec 16 14:51:22 2006 -0600 @@ -85,7 +85,7 @@ committer = " ".join(p[:-2]) if committer[0] == "<": committer = committer[1:-1] committer = recode(committer) - message += "\ncommitter: %s\n" % v + message += "\ncommitter: %s\n" % committer if n == "parent": parents.append(v) tzs, tzh, tzm = tz[-5:-4] + "1", tz[-4:-2], tz[-2:] @@ -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"):