mercurial/context.py
changeset 40693 aee94f0a36cd
parent 40692 f3f4d8537b11
child 40694 8a0136f69027
equal deleted inserted replaced
40692:f3f4d8537b11 40693:aee94f0a36cd
   778             # We know which changelog entry we are coming from
   778             # We know which changelog entry we are coming from
   779             toprev = self._changectx.rev()
   779             toprev = self._changectx.rev()
   780 
   780 
   781         if toprev is not None:
   781         if toprev is not None:
   782             return self._adjustlinkrev(toprev, inclusive=True)
   782             return self._adjustlinkrev(toprev, inclusive=True)
       
   783         elif r'_descendantrev' in attrs:
       
   784             introrev = self._adjustlinkrev(self._descendantrev)
       
   785             # be nice and cache the result of the computation
       
   786             self._changeid = introrev
       
   787             return introrev
   783         else:
   788         else:
   784             return self.linkrev()
   789             return self.linkrev()
   785 
   790 
   786     def introfilectx(self):
   791     def introfilectx(self):
   787         """Return filectx having identical contents, but pointing to the
   792         """Return filectx having identical contents, but pointing to the