Mercurial > hg-stable
changeset 19565:bd1580a9c133
basectx: move _dirs from changectx
author | Sean Farley <sean.michael.farley@gmail.com> |
---|---|
date | Mon, 05 Aug 2013 18:41:43 -0500 |
parents | f0ed47b73d37 |
children | 54817c774d38 |
files | mercurial/context.py |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/context.py Mon Aug 05 18:41:12 2013 -0500 +++ b/mercurial/context.py Mon Aug 05 18:41:43 2013 -0500 @@ -138,6 +138,10 @@ return patch.diff(self._repo, ctx2.node(), self.node(), match=match, opts=diffopts) + @propertycache + def _dirs(self): + return scmutil.dirs(self._manifest) + class changectx(basectx): """A changecontext object makes access to data related to a particular changeset convenient. It represents a read-only context already presnt in @@ -399,10 +403,6 @@ if match.bad(fn, _('no such file in rev %s') % self) and match(fn): yield fn - @propertycache - def _dirs(self): - return scmutil.dirs(self._manifest) - def dirs(self): return self._dirs