comparison mercurial/context.py @ 24323:4c7c6beade1a

manifest: have context's dirs() call its manifest's dirs() This lets the context's dirs() method be agnostic towards any alternate manifest implementations.
author Drew Gottlieb <drgott@google.com>
date Fri, 13 Mar 2015 15:23:02 -0700
parents 6ddc86eedc3b
children 79d9c51488ca
comparison
equal deleted inserted replaced
24322:f263814c72ac 24323:4c7c6beade1a
264 if ctx2 is not None: 264 if ctx2 is not None:
265 ctx2 = self._repo[ctx2] 265 ctx2 = self._repo[ctx2]
266 diffopts = patch.diffopts(self._repo.ui, opts) 266 diffopts = patch.diffopts(self._repo.ui, opts)
267 return patch.diff(self._repo, ctx2, self, match=match, opts=diffopts) 267 return patch.diff(self._repo, ctx2, self, match=match, opts=diffopts)
268 268
269 @propertycache
270 def _dirs(self):
271 return scmutil.dirs(self._manifest)
272
273 def dirs(self): 269 def dirs(self):
274 return self._dirs 270 return self._manifest.dirs()
271
275 272
276 def dirty(self, missing=False, merge=True, branch=True): 273 def dirty(self, missing=False, merge=True, branch=True):
277 return False 274 return False
278 275
279 def status(self, other=None, match=None, listignored=False, 276 def status(self, other=None, match=None, listignored=False,