Patchwork [06,of,11] localrepo: use the 'registernew' function to set the phase of new commit

login
register
mail settings
Submitter Boris Feld
Date July 14, 2017, 1:25 p.m.
Message ID <210688a668f0ff9f8395.1500038740@FB>
Download mbox | patch
Permalink /patch/22322/
State Accepted
Headers show

Comments

Boris Feld - July 14, 2017, 1:25 p.m.
# HG changeset patch
# User Boris Feld <boris.feld@octobus.net>
# Date 1499727927 -7200
#      Tue Jul 11 01:05:27 2017 +0200
# Node ID 210688a668f0ff9f8395b2789b29fdb2a1de2c64
# Parent  f700a612e24139e8ee411d208791fc6d4ac9bab3
# EXP-Topic tr.changes.phases
localrepo: use the 'registernew' function to set the phase of new commit

Patch

diff -r f700a612e241 -r 210688a668f0 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
@@ -1872,7 +1872,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: