contrib/convert-repo
changeset 3911 fe075ddf3272
parent 3910 4bc5a2405b12
child 3916 645e1dd4b8ae
--- a/contrib/convert-repo
+++ b/contrib/convert-repo
@@ -295,7 +295,8 @@ class convert:
             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"):