D7726: commitablectx: fix the default phase
marmoute (Pierre-Yves David)
phabricator at mercurial-scm.org
Fri Dec 27 12:37:58 EST 2019
Closed by commit rHGbbcf78c4ff90: commitablectx: fix the default phase (authored by marmoute).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D7726?vs=18935&id=18944
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D7726/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D7726
AFFECTED FILES
mercurial/context.py
CHANGE DETAILS
diff --git a/mercurial/context.py b/mercurial/context.py
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -1439,7 +1439,7 @@
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
To: marmoute, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list