Mercurial > hg > mercurial-crew-with-dirclash
comparison contrib/convert-repo @ 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 | 645e1dd4b8ae |
comparison
equal
deleted
inserted
replaced
3910:4bc5a2405b12 | 3911:fe075ddf3272 |
---|---|
293 | 293 |
294 if c and ctags: | 294 if c and ctags: |
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"): |
302 gitpath += "/.git" | 303 gitpath += "/.git" |
303 | 304 |