Mercurial > hg
changeset 19692:594f4d2b0ce9
commitablectx: move phase from workingctx
author | Sean Farley <sean.michael.farley@gmail.com> |
---|---|
date | Wed, 14 Aug 2013 16:24:59 -0500 |
parents | 33ae2052d924 |
children | 56ba14d4bc02 |
files | mercurial/context.py |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/context.py Wed Aug 14 16:24:33 2013 -0500 +++ b/mercurial/context.py Wed Aug 14 16:24:59 2013 -0500 @@ -1006,6 +1006,12 @@ b.extend(p.bookmarks()) return b + def phase(self): + phase = phases.draft # default phase to draft + for p in self.parents(): + phase = max(phase, p.phase()) + return phase + class workingctx(commitablectx): """A workingctx object makes access to data related to the current working directory convenient. @@ -1032,12 +1038,6 @@ p = p[:-1] return [changectx(self._repo, x) for x in p] - def phase(self): - phase = phases.draft # default phase to draft - for p in self.parents(): - phase = max(phase, p.phase()) - return phase - def hidden(self): return False