##// END OF EJS Templates
convert-repo: avoid adding bogus value to shamap on tag update
Matt Mackall -
r3911:fe075ddf default
parent child Browse files
Show More
@@ -295,7 +295,8 b' class convert:'
295 nrev = self.dest.puttags(ctags)
295 nrev = self.dest.puttags(ctags)
296 # write another hash correspondence to override the previous
296 # write another hash correspondence to override the previous
297 # one so we don't end up with extra tag heads
297 # one so we don't end up with extra tag heads
298 file(self.mapfile, "a").write("%s %s\n" % (c, nrev))
298 if nrev:
299 file(self.mapfile, "a").write("%s %s\n" % (c, nrev))
299
300
300 gitpath, hgpath, mapfile = sys.argv[1:]
301 gitpath, hgpath, mapfile = sys.argv[1:]
301 if os.path.isdir(gitpath + "/.git"):
302 if os.path.isdir(gitpath + "/.git"):
General Comments 0
You need to be logged in to leave comments. Login now