# HG changeset patch # User Matt Mackall # Date 2005-10-06 00:11:06 # Node ID a1040345fdda7f5ee0cb6ba519e50a7ebabe3615 # Parent adb3de56635b68dc84d12840347bc9211de7a6f5 convert-repo: retrieve the commit hash from the tag object for tag import diff --git a/contrib/convert-repo b/contrib/convert-repo --- a/contrib/convert-repo +++ b/contrib/convert-repo @@ -82,6 +82,8 @@ class convert_git: 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