comparison mercurial/context.py @ 19566:54817c774d38

basectx: move dirs from changectx
author Sean Farley <sean.michael.farley@gmail.com>
date Mon, 05 Aug 2013 18:41:56 -0500
parents bd1580a9c133
children 49b128e50e84
comparison
equal deleted inserted replaced
19565:bd1580a9c133 19566:54817c774d38
139 match=match, opts=diffopts) 139 match=match, opts=diffopts)
140 140
141 @propertycache 141 @propertycache
142 def _dirs(self): 142 def _dirs(self):
143 return scmutil.dirs(self._manifest) 143 return scmutil.dirs(self._manifest)
144
145 def dirs(self):
146 return self._dirs
144 147
145 class changectx(basectx): 148 class changectx(basectx):
146 """A changecontext object makes access to data related to a particular 149 """A changecontext object makes access to data related to a particular
147 changeset convenient. It represents a read-only context already presnt in 150 changeset convenient. It represents a read-only context already presnt in
148 the repo.""" 151 the repo."""
400 if fn in self._dirs: 403 if fn in self._dirs:
401 # specified pattern is a directory 404 # specified pattern is a directory
402 continue 405 continue
403 if match.bad(fn, _('no such file in rev %s') % self) and match(fn): 406 if match.bad(fn, _('no such file in rev %s') % self) and match(fn):
404 yield fn 407 yield fn
405
406 def dirs(self):
407 return self._dirs
408 408
409 def dirty(self): 409 def dirty(self):
410 return False 410 return False
411 411
412 class filectx(object): 412 class filectx(object):