diff hgeditor @ 28786:69c6e9623bdc

revset: force ascending order for baseset initialized from a set It is possible to initialize a baseset directly from a set object. However, in this case the iteration order was inherited from the set. Set have undefined iteration order (especially cpython and pypy will have different one) so we should not rely on it anywhere. Therefor we declare the baseset "ascending" to enforce a consistent iteration order. The sorting is done lazily by the baseset class and should have no performance impact when it does not matter. This makes test-revset.t pass with pypy.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Mon, 04 Apr 2016 17:45:54 -0700
parents 1aee2ab0f902
children
line wrap: on
line diff