Mercurial > hg
changeset 3911:fe075ddf3272
convert-repo: avoid adding bogus value to shamap on tag update
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sat, 16 Dec 2006 14:41:34 -0600 |
parents | 4bc5a2405b12 |
children | f2c4a2ee59ed dbd828167384 |
files | contrib/convert-repo |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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"):