Mercurial > hg-stable
changeset 19691:33ae2052d924
commitablectx: move bookmarks from workingctx
author | Sean Farley <sean.michael.farley@gmail.com> |
---|---|
date | Wed, 14 Aug 2013 16:24:33 -0500 |
parents | 65ff9fd67d8d |
children | 594f4d2b0ce9 |
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:16 2013 -0500 +++ b/mercurial/context.py Wed Aug 14 16:24:33 2013 -0500 @@ -1000,6 +1000,12 @@ t.extend(p.tags()) return t + def bookmarks(self): + b = [] + for p in self.parents(): + b.extend(p.bookmarks()) + return b + class workingctx(commitablectx): """A workingctx object makes access to data related to the current working directory convenient. @@ -1026,12 +1032,6 @@ p = p[:-1] return [changectx(self._repo, x) for x in p] - def bookmarks(self): - b = [] - for p in self.parents(): - b.extend(p.bookmarks()) - return b - def phase(self): phase = phases.draft # default phase to draft for p in self.parents():