mercurial/context.py
branchstable
changeset 38751 71d6886d27cf
parent 38709 6a032a8f741b
child 38755 545a3e6650cd
equal deleted inserted replaced
38750:a8bfaf592033 38751:71d6886d27cf
   589                             short(n) for n in sorted(cahs) if n != anc))
   589                             short(n) for n in sorted(cahs) if n != anc))
   590         return changectx(self._repo, anc)
   590         return changectx(self._repo, anc)
   591 
   591 
   592     def descendant(self, other):
   592     def descendant(self, other):
   593         msg = (b'ctx.descendant(other) is deprecated, '
   593         msg = (b'ctx.descendant(other) is deprecated, '
   594                'use ctx.isancestorof(other)')
   594                b'use ctx.isancestorof(other)')
   595         self._repo.ui.deprecwarn(msg, b'4.7')
   595         self._repo.ui.deprecwarn(msg, b'4.7')
   596         return self.isancestorof(other)
   596         return self.isancestorof(other)
   597 
   597 
   598     def isancestorof(self, other):
   598     def isancestorof(self, other):
   599         """True if this changeset is an ancestor of other"""
   599         """True if this changeset is an ancestor of other"""