diff hgext/convert/hg.py @ 45790:5d65e04b6a80

phases: convert registernew users to use revision sets Differential Revision: https://phab.mercurial-scm.org/D9233
author Joerg Sonnenberger <joerg@bec.de>
date Tue, 20 Oct 2020 17:32:45 +0200
parents 3c783ff08d40
children 59fa3890d40a
line wrap: on
line diff
--- a/hgext/convert/hg.py	Mon Oct 19 02:54:12 2020 +0200
+++ b/hgext/convert/hg.py	Tue Oct 20 17:32:45 2020 +0200
@@ -398,7 +398,7 @@
                     ctx = self.repo[node]
                     if ctx.phase() < phases.draft:
                         phases.registernew(
-                            self.repo, tr, phases.draft, [ctx.node()]
+                            self.repo, tr, phases.draft, [ctx.rev()]
                         )
 
             text = b"(octopus merge fixup)\n"