# HG changeset patch # User Pierre-Yves David # Date 2019-12-27 15:47:47 # Node ID bbcf78c4ff90cada6305fdeff204d1b0d24d5a2f # Parent eebdd6709868defe2be741bdfb50fc701fe65e22 commitablectx: fix the default phase The code was ignoring the config option. Since the config option will control the actual phase of the committed result, we better take it in account early. Differential Revision: https://phab.mercurial-scm.org/D7726 diff --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -1439,7 +1439,7 @@ class committablectx(basectx): return b def phase(self): - phase = phases.draft # default phase to draft + phase = phases.newcommitphase(self._repo.ui) for p in self.parents(): phase = max(phase, p.phase()) return phase