comparison mercurial/context.py @ 6818:6e93fbd847ef

dirstate.walk: eliminate src from yield - restructure 'step two' to stat unseen files - remove extra stat logic in status - remove redundant src
author Matt Mackall <mpm@selenic.com>
date Tue, 22 Jul 2008 13:02:36 -0500
parents cf319797d61c
children c978d6752dbb
comparison
equal deleted inserted replaced
6817:cf319797d61c 6818:6e93fbd847ef
596 def ancestor(self, c2): 596 def ancestor(self, c2):
597 """return the ancestor context of self and c2""" 597 """return the ancestor context of self and c2"""
598 return self._parents[0].ancestor(c2) # punt on two parents for now 598 return self._parents[0].ancestor(c2) # punt on two parents for now
599 599
600 def walk(self, match): 600 def walk(self, match):
601 for src, fn, st in self._repo.dirstate.walk(match, True, False): 601 for fn, st in self._repo.dirstate.walk(match, True, False):
602 yield fn 602 yield fn
603 603
604 class workingfilectx(filectx): 604 class workingfilectx(filectx):
605 """A workingfilectx object makes access to data related to a particular 605 """A workingfilectx object makes access to data related to a particular
606 file in the working directory convenient.""" 606 file in the working directory convenient."""