##// END OF EJS Templates
context: small refactoring of `isintroducedafter`...
Boris Feld -
r40732:69206452 default
parent child Browse files
Show More
@@ -763,8 +763,10 b' class basefilectx(object):'
763 def isintroducedafter(self, changelogrev):
763 def isintroducedafter(self, changelogrev):
764 """True if a filectx has been introduced after a given floor revision
764 """True if a filectx has been introduced after a given floor revision
765 """
765 """
766 return (self.linkrev() >= changelogrev
766 if self.linkrev() >= changelogrev:
767 or self._introrev() >= changelogrev)
767 return True
768 introrev = self._introrev()
769 return introrev >= changelogrev
768
770
769 def introrev(self):
771 def introrev(self):
770 """return the rev of the changeset which introduced this file revision
772 """return the rev of the changeset which introduced this file revision
General Comments 0
You need to be logged in to leave comments. Login now