convert-repo: fix up octopus merge conversion
authorMatt Mackall <mpm@selenic.com>
Wed, 05 Oct 2005 19:27:35 -0700
changeset 1389 9b3ef6f3cef5
parent 1388 5eb2d3c54165
child 1390 ce95599eedac
child 1457 518da3c3b6ce
convert-repo: fix up octopus merge conversion
contrib/convert-repo
--- a/contrib/convert-repo	Wed Oct 05 19:26:41 2005 -0700
+++ b/contrib/convert-repo	Wed Oct 05 19:27:35 2005 -0700
@@ -132,8 +132,9 @@
             self.repo.rawcommit(files, text, author, dest,
                                 hg.bin(p1), hg.bin(p2))
             text = "(octopus merge fixup)\n"
+            p2 = hg.hex(self.repo.changelog.tip())
 
-        return hg.hex(self.repo.changelog.tip())
+        return p2
 
     def puttags(self, tags):
         try: