Mercurial > hg
comparison i18n/check-translation.py @ 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 | 3fb36dec1727 |
children | 29238dbf718e |
comparison
equal
deleted
inserted
replaced
28785:87b89dca669d | 28786:69c6e9623bdc |
---|