# HG changeset patch # User Matt Mackall # Date 1128557466 25200 # Node ID a1040345fdda7f5ee0cb6ba519e50a7ebabe3615 # Parent adb3de56635b68dc84d12840347bc9211de7a6f5 convert-repo: retrieve the commit hash from the tag object for tag import diff -r adb3de56635b -r a1040345fdda contrib/convert-repo --- a/contrib/convert-repo Wed Oct 05 17:09:51 2005 -0700 +++ b/contrib/convert-repo Wed Oct 05 17:11:06 2005 -0700 @@ -82,6 +82,8 @@ for f in os.listdir(self.path + "/refs/tags"): try: h = file(self.path + "/refs/tags/" + f).read().strip() + c = self.catfile(h, "tag") # read the commit hash + h = c.splitlines()[0].split()[1] tags[f] = h except: pass