# HG changeset patch # User Boris Feld # Date 1499727927 -7200 # Node ID 3c20d7ef42e1ac4a537042439ce06c355caa3e33 # Parent f6b7617a85bba65c5e5530f7021bc4587cb08388 localrepo: use the 'registernew' function to set the phase of new commit diff -r f6b7617a85bb -r 3c20d7ef42e1 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: