##// END OF EJS Templates
context: take advantage of `_descendantrev` in introrev if available...
Boris Feld -
r40729:aee94f0a default
parent child Browse files
Show More
@@ -780,6 +780,11 b' class basefilectx(object):'
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
General Comments 0
You need to be logged in to leave comments. Login now