changeset 40694 | 8a0136f69027 |
parent 40693 | aee94f0a36cd |
child 40695 | 9fa0d6dd1617 |
--- a/mercurial/context.py Wed Oct 10 00:50:34 2018 +0200 +++ b/mercurial/context.py Wed Oct 10 00:50:35 2018 +0200 @@ -760,6 +760,12 @@ # result is crash somewhere else at to some point. return lkr + def isintroducedafter(self, changelogrev): + """True if a filectx has been introduced after a given floor revision + """ + return (self.linkrev() >= changelogrev + or self.introrev() >= changelogrev) + def introrev(self): """return the rev of the changeset which introduced this file revision