context: small refactoring of `isintroducedafter`
This make the next change clearer.
--- a/mercurial/context.py Wed Oct 10 00:50:36 2018 +0200
+++ b/mercurial/context.py Mon Nov 19 14:30:58 2018 +0000
@@ -763,8 +763,10 @@
def isintroducedafter(self, changelogrev):
"""True if a filectx has been introduced after a given floor revision
"""
- return (self.linkrev() >= changelogrev
- or self._introrev() >= changelogrev)
+ if self.linkrev() >= changelogrev:
+ return True
+ introrev = self._introrev()
+ return introrev >= changelogrev
def introrev(self):
"""return the rev of the changeset which introduced this file revision