Patchwork D7726: commitablectx: fix the default phase

login
register
mail settings
Submitter phabricator
Date Dec. 27, 2019, 5:37 p.m.
Message ID <703e185301df6469cb0db4b73c6e2f66@localhost.localdomain>
Download mbox | patch
Permalink /patch/44057/
State Not Applicable
Headers show

Comments

phabricator - Dec. 27, 2019, 5:37 p.m.
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




To: marmoute, #hg-reviewers
Cc: mercurial-devel

Patch

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