Mercurial > public > mercurial-scm > hg
comparison mercurial/context.py @ 19567:49b128e50e84
basectx: move dirty from changectx
author | Sean Farley <sean.michael.farley@gmail.com> |
---|---|
date | Mon, 05 Aug 2013 18:42:41 -0500 |
parents | 54817c774d38 |
children | f58235d85d6b |
comparison
equal
deleted
inserted
replaced
19566:54817c774d38 | 19567:49b128e50e84 |
---|---|
142 def _dirs(self): | 142 def _dirs(self): |
143 return scmutil.dirs(self._manifest) | 143 return scmutil.dirs(self._manifest) |
144 | 144 |
145 def dirs(self): | 145 def dirs(self): |
146 return self._dirs | 146 return self._dirs |
147 | |
148 def dirty(self): | |
149 return False | |
147 | 150 |
148 class changectx(basectx): | 151 class changectx(basectx): |
149 """A changecontext object makes access to data related to a particular | 152 """A changecontext object makes access to data related to a particular |
150 changeset convenient. It represents a read-only context already presnt in | 153 changeset convenient. It represents a read-only context already presnt in |
151 the repo.""" | 154 the repo.""" |
403 if fn in self._dirs: | 406 if fn in self._dirs: |
404 # specified pattern is a directory | 407 # specified pattern is a directory |
405 continue | 408 continue |
406 if match.bad(fn, _('no such file in rev %s') % self) and match(fn): | 409 if match.bad(fn, _('no such file in rev %s') % self) and match(fn): |
407 yield fn | 410 yield fn |
408 | |
409 def dirty(self): | |
410 return False | |
411 | 411 |
412 class filectx(object): | 412 class filectx(object): |
413 """A filecontext object makes access to data related to a particular | 413 """A filecontext object makes access to data related to a particular |
414 filerevision convenient.""" | 414 filerevision convenient.""" |
415 def __init__(self, repo, path, changeid=None, fileid=None, | 415 def __init__(self, repo, path, changeid=None, fileid=None, |