mercurial/__init__.py
author Siddharth Agarwal <sid0@fb.com>
Fri, 14 Nov 2014 11:33:52 -0800
changeset 23332 194508240dc9
parent 0 9117c6561b0b
child 27220 4374d819ccd5
permissions -rw-r--r--
ancestor.missingancestors: don't discard from basesvisit We only actually care about whether revsvisit is empty, so we can let basesvisit grow to arbitrary size. It turns out that this actually helps performance. For a large repo with hundreds of thousands of commits, hg perfrevset 'only(0, tip)' (basically the worst case, involving a full DAG traversal) goes from 1.63 seconds to 1.50. hg perfrevset 'only(tip, 0)' remains unchanged at 1.98 seconds.