rank: compute property incrementally...
rank: compute property incrementally
This replaces the naive rank computation with a more efficient incremental
method, avoiding computing the whole ancestor set when possible.
Differential Revision:
https://phab.mercurial-scm.org/D12143