diff mercurial/bookmarks.py @ 38670:fbec9c0b32d3

context: rename descendant() to isancestorof() This makes the direction much clearer, IMO. Differential Revision: https://phab.mercurial-scm.org/D3936
author Martin von Zweigbergk <martinvonz@google.com>
date Thu, 12 Jul 2018 08:22:28 -0700
parents 2f7104984857
children fc54a290b4b0
line wrap: on
line diff
--- a/mercurial/bookmarks.py	Thu Jul 12 09:25:02 2018 -0700
+++ b/mercurial/bookmarks.py	Thu Jul 12 08:22:28 2018 -0700
@@ -813,7 +813,7 @@
         return new.node() in obsutil.foreground(repo, [old.node()])
     else:
         # still an independent clause as it is lazier (and therefore faster)
-        return old.descendant(new)
+        return old.isancestorof(new)
 
 def checkformat(repo, mark):
     """return a valid version of a potential bookmark name