localrepo: use the 'registernew' function to set the phase of new commit
authorBoris Feld <boris.feld@octobus.net>
Tue, 11 Jul 2017 01:05:27 +0200
changeset 33454 3c20d7ef42e1
parent 33453 f6b7617a85bb
child 33455 b1bc8cf3fea8
localrepo: use the 'registernew' function to set the phase of new commit
mercurial/localrepo.py
--- a/mercurial/localrepo.py	Tue Jul 11 03:47:25 2017 +0200
+++ b/mercurial/localrepo.py	Tue Jul 11 01:05:27 2017 +0200
@@ -1952,7 +1952,7 @@
                 # be compliant anyway
                 #
                 # if minimal phase was 0 we don't need to retract anything
-                phases.retractboundary(self, tr, targetphase, [n])
+                phases.registernew(self, tr, targetphase, [n])
             tr.close()
             return n
         finally: