convert: use the new 'phase.registernew' function
authorBoris Feld <boris.feld@octobus.net>
Tue, 11 Jul 2017 00:59:23 +0200
changeset 33455 b1bc8cf3fea8
parent 33454 3c20d7ef42e1
child 33456 ae052d04b89e
convert: use the new 'phase.registernew' function
hgext/convert/hg.py
--- a/hgext/convert/hg.py	Tue Jul 11 01:05:27 2017 +0200
+++ b/hgext/convert/hg.py	Tue Jul 11 00:59:23 2017 +0200
@@ -345,8 +345,8 @@
                 if commit.rev != node:
                     ctx = self.repo[node]
                     if ctx.phase() < phases.draft:
-                        phases.retractboundary(self.repo, tr, phases.draft,
-                                               [ctx.node()])
+                        phases.registernew(self.repo, tr, phases.draft,
+                                           [ctx.node()])
 
             text = "(octopus merge fixup)\n"
             p2 = node