##// END OF EJS Templates
context: reverse conditional branch order in introrev...
Boris Feld -
r40082:50700a02 default
parent child Browse files
Show More
@@ -777,10 +777,11 b' class basefilectx(object):'
777 changesets.
777 changesets.
778 """
778 """
779 attrs = vars(self)
779 attrs = vars(self)
780 noctx = not (r'_changeid' in attrs or r'_changectx' in attrs)
780 hastoprev = (r'_changeid' in attrs or r'_changectx' in attrs)
781 if noctx:
781 if hastoprev:
782 return self._adjustlinkrev(self.rev(), inclusive=True)
783 else:
782 return self.linkrev()
784 return self.linkrev()
783 return self._adjustlinkrev(self.rev(), inclusive=True)
784
785
785 def introfilectx(self):
786 def introfilectx(self):
786 """Return filectx having identical contents, but pointing to the
787 """Return filectx having identical contents, but pointing to the
General Comments 0
You need to be logged in to leave comments. Login now