comparison mercurial/context.py @ 43968:bbcf78c4ff90

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
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 27 Dec 2019 16:47:47 +0100
parents be8552f25cab
children e685fac56693
comparison
equal deleted inserted replaced
43967:eebdd6709868 43968:bbcf78c4ff90
1437 for p in self.parents(): 1437 for p in self.parents():
1438 b.extend(p.bookmarks()) 1438 b.extend(p.bookmarks())
1439 return b 1439 return b
1440 1440
1441 def phase(self): 1441 def phase(self):
1442 phase = phases.draft # default phase to draft 1442 phase = phases.newcommitphase(self._repo.ui)
1443 for p in self.parents(): 1443 for p in self.parents():
1444 phase = max(phase, p.phase()) 1444 phase = max(phase, p.phase())
1445 return phase 1445 return phase
1446 1446
1447 def hidden(self): 1447 def hidden(self):