Mercurial > hg-stable
comparison setup.py @ 29949:89dbae952ec1
revset: make reverse() noop depending on ordering requirement (BC)
Because smartset.reverse() may modify the underlying subset, it should be
called only if the set can define the ordering.
In the following example, 'a' and 'c' is the same object, so 'b.reverse()'
would reverse 'a' unexpectedly.
# '0:2 & reverse(all())'
<filteredset
<spanset- 0:2>, # a
<filteredset # b
<spanset- 0:2>, # c
<spanset+ 0:9>>>
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Tue, 03 May 2016 13:36:12 +0900 |
parents | a8933d992a71 |
children | 9cc438bf7d9a |
comparison
equal
deleted
inserted
replaced
29948:5f56a3b9675e | 29949:89dbae952ec1 |
---|