Comments
Patch
@@ -136,10 +136,14 @@
ctx2 = self._repo[ctx2]
diffopts = patch.diffopts(self._repo.ui, opts)
return patch.diff(self._repo, ctx2.node(), self.node(),
match=match, opts=diffopts)
+ @propertycache
+ def _dirs(self):
+ return scmutil.dirs(self._manifest)
+
class changectx(context):
"""A changecontext object makes access to data related to a particular
changeset convenient. It represents a read-only context already presnt in
the repo."""
def __init__(self, repo, changeid=''):
@@ -391,14 +395,10 @@
# specified pattern is a directory
continue
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
def dirty(self):
return False