changeset 33454:3c20d7ef42e1

localrepo: use the 'registernew' function to set the phase of new commit
author Boris Feld <boris.feld@octobus.net>
date Tue, 11 Jul 2017 01:05:27 +0200
parents f6b7617a85bb
children b1bc8cf3fea8
files mercurial/localrepo.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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: