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