mercurial/bookmarks.py
changeset 24180 d8e0c591781c
parent 23877 7cc77030c557
child 24306 6ddc86eedc3b
equal deleted inserted replaced
24179:14d647d25c70 24180:d8e0c591781c
   454         # (new != nullrev has been excluded by the previous check)
   454         # (new != nullrev has been excluded by the previous check)
   455         return True
   455         return True
   456     elif repo.obsstore:
   456     elif repo.obsstore:
   457         return new.node() in obsolete.foreground(repo, [old.node()])
   457         return new.node() in obsolete.foreground(repo, [old.node()])
   458     else:
   458     else:
   459         # still an independent clause as it is lazyer (and therefore faster)
   459         # still an independent clause as it is lazier (and therefore faster)
   460         return old.descendant(new)
   460         return old.descendant(new)