comparison tests/test-mq.t @ 22860:1dd178277cf5

revset-_descendant: rework the whole sorting and combining logic We use the & operator to combine with subset (since this is more likely to be optimised than filter) and we enforce the sorting of the result. Without this enforced sorting, we may result in a different iteration order than the set _descendent was computed from. This reverts a bad `test-glog.t` change from 69402eb72115. Another side effect is that `test-mq.t` shows `qparent::` including `-1` if `qparent is -1`. This sound like a positive change. This has good and bad impacts on the benchmarks, here is a good ones: revset: 0:: before) wall 0.045489 comb 0.040000 user 0.040000 sys 0.000000 (best of 100) after) wall 0.034330 comb 0.030000 user 0.030000 sys 0.000000 (best of 100) revset: roots((0::) - (0::tip)) before) wall 0.134090 comb 0.140000 user 0.140000 sys 0.000000 (best of 63) after) wall 0.128346 comb 0.130000 user 0.130000 sys 0.000000 (best of 69) revset: ::p1(p1(tip)):: before) wall 0.143892 comb 0.140000 user 0.140000 sys 0.000000 (best of 55) after) wall 0.124502 comb 0.130000 user 0.130000 sys 0.000000 (best of 65) revset: roots((0:tip)::) before) wall 0.204966 comb 0.200000 user 0.200000 sys 0.000000 (best of 43) after) wall 0.184455 comb 0.180000 user 0.180000 sys 0.000000 (best of 47) Here is a bad one: revset: (20000::) - (20000) before) wall 0.009592 comb 0.010000 user 0.010000 sys 0.000000 (best of 222) after) wall 0.029837 comb 0.030000 user 0.030000 sys 0.000000 (best of 100)
author Pierre-Yves David <pierre-yves.david@fb.com>
date Thu, 09 Oct 2014 09:12:54 -0700
parents 9a299c39de01
children 7361d8244efb
comparison
equal deleted inserted replaced
22859:513c0ba61db8 22860:1dd178277cf5
1507 1507
1508 1. mq.secret=false 1508 1. mq.secret=false
1509 1509
1510 $ rm .hg/store/phaseroots 1510 $ rm .hg/store/phaseroots
1511 $ hg phase 'qparent::' 1511 $ hg phase 'qparent::'
1512 -1: public
1512 0: draft 1513 0: draft
1513 1: draft 1514 1: draft
1514 2: draft 1515 2: draft
1515 $ echo '[mq]' >> $HGRCPATH 1516 $ echo '[mq]' >> $HGRCPATH
1516 $ echo 'secret=true' >> $HGRCPATH 1517 $ echo 'secret=true' >> $HGRCPATH
1517 $ rm -f .hg/store/phaseroots 1518 $ rm -f .hg/store/phaseroots
1518 $ hg phase 'qparent::' 1519 $ hg phase 'qparent::'
1520 -1: public
1519 0: secret 1521 0: secret
1520 1: secret 1522 1: secret
1521 2: secret 1523 2: secret
1522 1524
1523 Test that qfinish change phase when mq.secret=true 1525 Test that qfinish change phase when mq.secret=true