mercurial/context.py
changeset 6827 c978d6752dbb
parent 6818 6e93fbd847ef
child 6829 fec1da46006e
equal deleted inserted replaced
6826:eca20fee0728 6827:c978d6752dbb
   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 fn, st in self._repo.dirstate.walk(match, True, False):
   601         for fn, st in util.sort(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."""