Show More
@@ -1,140 +1,141 | |||||
1 | # All revsets ever used with revsetbenchmarks.py script |
|
1 | # All revsets ever used with revsetbenchmarks.py script | |
2 | # |
|
2 | # | |
3 | # The goal of this file is to gather all revsets ever used for benchmarking |
|
3 | # The goal of this file is to gather all revsets ever used for benchmarking | |
4 | # revset's performance. It should be used to gather revsets that test a |
|
4 | # revset's performance. It should be used to gather revsets that test a | |
5 | # specific usecase or a specific implementation of revset predicates. |
|
5 | # specific usecase or a specific implementation of revset predicates. | |
6 | # If you are working on the smartset implementation itself, check |
|
6 | # If you are working on the smartset implementation itself, check | |
7 | # 'base-revsets.txt'. |
|
7 | # 'base-revsets.txt'. | |
8 | # |
|
8 | # | |
9 | # Please update this file with any revsets you use for benchmarking a change so |
|
9 | # Please update this file with any revsets you use for benchmarking a change so | |
10 | # that future contributors can easily find and retest it when doing further |
|
10 | # that future contributors can easily find and retest it when doing further | |
11 | # modification. Feel free to highlight interesting variants if needed. |
|
11 | # modification. Feel free to highlight interesting variants if needed. | |
12 |
|
12 | |||
13 |
|
13 | |||
14 | ## Revset from this section are all extracted from changelog when this file was |
|
14 | ## Revset from this section are all extracted from changelog when this file was | |
15 | # created. Feel free to dig and improve documentation. |
|
15 | # created. Feel free to dig and improve documentation. | |
16 |
|
16 | |||
17 | # Used in revision da05fe01170b |
|
17 | # Used in revision da05fe01170b | |
18 | (20000::) - (20000) |
|
18 | (20000::) - (20000) | |
19 | # Used in revision 95af98616aa7 |
|
19 | # Used in revision 95af98616aa7 | |
20 | parents(20000) |
|
20 | parents(20000) | |
21 | # Used in revision 186fd06283b4 |
|
21 | # Used in revision 186fd06283b4 | |
22 | (_intlist('20000\x0020001')) and merge() |
|
22 | (_intlist('20000\x0020001')) and merge() | |
23 | # Used in revision 911f5a6579d1 |
|
23 | # Used in revision 911f5a6579d1 | |
24 | p1(20000) |
|
24 | p1(20000) | |
25 | p2(10000) |
|
25 | p2(10000) | |
26 | # Used in revision b6dc3b79bb25 |
|
26 | # Used in revision b6dc3b79bb25 | |
27 | 0:: |
|
27 | 0:: | |
28 | # Used in revision faf4f63533ff |
|
28 | # Used in revision faf4f63533ff | |
29 | bookmark() |
|
29 | bookmark() | |
30 | # Used in revision 22ba2c0825da |
|
30 | # Used in revision 22ba2c0825da | |
31 | tip~25 |
|
31 | tip~25 | |
32 | # Used in revision 0cf46b8298fe |
|
32 | # Used in revision 0cf46b8298fe | |
33 | bisect(range) |
|
33 | bisect(range) | |
34 | # Used in revision 5b65429721d5 |
|
34 | # Used in revision 5b65429721d5 | |
35 | divergent() |
|
35 | divergent() | |
36 | # Used in revision 6261b9c549a2 |
|
36 | # Used in revision 6261b9c549a2 | |
37 | file(COPYING) |
|
37 | file(COPYING) | |
38 | # Used in revision 44f471102f3a |
|
38 | # Used in revision 44f471102f3a | |
39 | follow(COPYING) |
|
39 | follow(COPYING) | |
40 | # Used in revision 8040a44aab1c |
|
40 | # Used in revision 8040a44aab1c | |
41 | origin(tip) |
|
41 | origin(tip) | |
42 | # Used in revision bbf4f3dfd700 |
|
42 | # Used in revision bbf4f3dfd700 | |
43 | rev(25) |
|
43 | rev(25) | |
44 | # Used in revision a428db9ab61d |
|
44 | # Used in revision a428db9ab61d | |
45 | p1() |
|
45 | p1() | |
46 | # Used in revision c1546d7400ef |
|
46 | # Used in revision c1546d7400ef | |
47 | min(0::) |
|
47 | min(0::) | |
48 | # Used in revision 546fa6576815 |
|
48 | # Used in revision 546fa6576815 | |
49 | author(lmoscovicz) or author(mpm) |
|
49 | author(lmoscovicz) or author(mpm) | |
50 | author(mpm) or author(lmoscovicz) |
|
50 | author(mpm) or author(lmoscovicz) | |
51 | # Used in revision 9bfe68357c01 |
|
51 | # Used in revision 9bfe68357c01 | |
52 | public() and id("d82e2223f132") |
|
52 | public() and id("d82e2223f132") | |
53 | # Used in revision ba89f7b542c9 |
|
53 | # Used in revision ba89f7b542c9 | |
54 | rev(25) |
|
54 | rev(25) | |
55 | # Used in revision eb763217152a |
|
55 | # Used in revision eb763217152a | |
56 | rev(210000) |
|
56 | rev(210000) | |
57 | # Used in revision 69524a05a7fa |
|
57 | # Used in revision 69524a05a7fa | |
58 | 10:100 |
|
58 | 10:100 | |
59 | parents(10):parents(100) |
|
59 | parents(10):parents(100) | |
60 | # Used in revision 6f1b8b3f12fd |
|
60 | # Used in revision 6f1b8b3f12fd | |
61 | 100~5 |
|
61 | 100~5 | |
62 | parents(100)~5 |
|
62 | parents(100)~5 | |
63 | (100~5)~5 |
|
63 | (100~5)~5 | |
64 | # Used in revision 7a42e5d4c418 |
|
64 | # Used in revision 7a42e5d4c418 | |
65 | children(tip~100) |
|
65 | children(tip~100) | |
66 | # Used in revision 7e8737e6ab08 |
|
66 | # Used in revision 7e8737e6ab08 | |
67 | 100^1 |
|
67 | 100^1 | |
68 | parents(100)^1 |
|
68 | parents(100)^1 | |
69 | (100^1)^1 |
|
69 | (100^1)^1 | |
70 | # Used in revision 30e0dcd7c5ff |
|
70 | # Used in revision 30e0dcd7c5ff | |
71 | matching(100) |
|
71 | matching(100) | |
72 | matching(parents(100)) |
|
72 | matching(parents(100)) | |
73 | # Used in revision aafeaba22826 |
|
73 | # Used in revision aafeaba22826 | |
74 | 0|1|2|3|4|5|6|7|8|9 |
|
74 | 0|1|2|3|4|5|6|7|8|9 | |
75 | # Used in revision 33c7a94d4dd0 |
|
75 | # Used in revision 33c7a94d4dd0 | |
76 | tip:0 |
|
76 | tip:0 | |
77 | # Used in revision 7d369fae098e |
|
77 | # Used in revision 7d369fae098e | |
78 | (0:100000) |
|
78 | (0:100000) | |
79 | # Used in revision b333ca94403d |
|
79 | # Used in revision b333ca94403d | |
80 | 0 + 1 + 2 + ... + 200 |
|
80 | 0 + 1 + 2 + ... + 200 | |
81 | 0 + 1 + 2 + ... + 1000 |
|
81 | 0 + 1 + 2 + ... + 1000 | |
82 | sort(0 + 1 + 2 + ... + 200) |
|
82 | sort(0 + 1 + 2 + ... + 200) | |
83 | sort(0 + 1 + 2 + ... + 1000) |
|
83 | sort(0 + 1 + 2 + ... + 1000) | |
84 | # Used in revision 7fbef7932af9 |
|
84 | # Used in revision 7fbef7932af9 | |
85 | first(0 + 1 + 2 + ... + 1000) |
|
85 | first(0 + 1 + 2 + ... + 1000) | |
86 | # Used in revision ceaf04bb14ff |
|
86 | # Used in revision ceaf04bb14ff | |
87 | 0:1000 |
|
87 | 0:1000 | |
88 | # Used in revision 262e6ad93885 |
|
88 | # Used in revision 262e6ad93885 | |
89 | not public() |
|
89 | not public() | |
90 | (tip~1000::) - public() |
|
90 | (tip~1000::) - public() | |
91 | not public() and branch("default") |
|
91 | not public() and branch("default") | |
92 | # Used in revision 15412bba5a68 |
|
92 | # Used in revision 15412bba5a68 | |
93 | 0::tip |
|
93 | 0::tip | |
94 |
|
94 | |||
95 | ## all the revsets from this section have been taken from the former central file |
|
95 | ## all the revsets from this section have been taken from the former central file | |
96 | # for revset's benchmarking, they are undocumented for this reason. |
|
96 | # for revset's benchmarking, they are undocumented for this reason. | |
97 | all() |
|
97 | all() | |
98 | draft() |
|
98 | draft() | |
99 | ::tip |
|
99 | ::tip | |
100 | draft() and ::tip |
|
100 | draft() and ::tip | |
101 | ::tip and draft() |
|
101 | ::tip and draft() | |
102 | author(lmoscovicz) |
|
102 | author(lmoscovicz) | |
103 | author(mpm) |
|
103 | author(mpm) | |
104 | ::p1(p1(tip)):: |
|
104 | ::p1(p1(tip)):: | |
105 | public() |
|
105 | public() | |
106 | :10000 and public() |
|
106 | :10000 and public() | |
107 | :10000 and draft() |
|
107 | :10000 and draft() | |
108 | (not public() - obsolete()) |
|
108 | (not public() - obsolete()) | |
109 |
|
109 | |||
110 | # The one below is used by rebase |
|
110 | # The one below is used by rebase | |
111 | (children(ancestor(tip~5, tip)) and ::(tip~5)):: |
|
111 | (children(ancestor(tip~5, tip)) and ::(tip~5)):: | |
112 |
|
112 | |||
113 | # those two `roots(...)` inputs are close to what phase movement use. |
|
113 | # those two `roots(...)` inputs are close to what phase movement use. | |
114 | roots((tip~100::) - (tip~100::tip)) |
|
114 | roots((tip~100::) - (tip~100::tip)) | |
115 | roots((0::) - (0::tip)) |
|
115 | roots((0::) - (0::tip)) | |
116 |
|
116 | |||
117 | # more roots testing |
|
117 | # more roots testing | |
118 | roots(tip~100:) |
|
118 | roots(tip~100:) | |
119 | roots(:42) |
|
119 | roots(:42) | |
120 | roots(not public()) |
|
120 | roots(not public()) | |
121 | roots((0:tip)::) |
|
121 | roots((0:tip)::) | |
122 | roots(0::tip) |
|
122 | roots(0::tip) | |
123 | 42:68 and roots(42:tip) |
|
123 | 42:68 and roots(42:tip) | |
124 | # Used in revision f140d6207cca |
|
124 | # Used in revision f140d6207cca | |
125 | roots(0:tip) |
|
125 | roots(0:tip) | |
126 | # test disjoint set with multiple roots |
|
126 | # test disjoint set with multiple roots | |
127 | roots((:42) + (tip~42:)) |
|
127 | roots((:42) + (tip~42:)) | |
128 |
|
128 | |||
129 | # Testing the behavior of "head()" in various situations |
|
129 | # Testing the behavior of "head()" in various situations | |
130 | head() |
|
130 | head() | |
131 | head() - public() |
|
131 | head() - public() | |
132 | draft() and head() |
|
132 | draft() and head() | |
133 | head() and author("mpm") |
|
133 | head() and author("mpm") | |
134 |
|
134 | |||
135 | # testing the mutable phases set |
|
135 | # testing the mutable phases set | |
136 | draft() |
|
136 | draft() | |
137 | secret() |
|
137 | secret() | |
138 |
|
138 | |||
139 | # test finding common ancestors |
|
139 | # test finding common ancestors | |
140 | heads(commonancestors(last(head(), 2))) |
|
140 | heads(commonancestors(last(head(), 2))) | |
|
141 | heads(commonancestors(head())) |
@@ -1,48 +1,49 | |||||
1 | # Base Revsets to be used with revsetbenchmarks.py script |
|
1 | # Base Revsets to be used with revsetbenchmarks.py script | |
2 | # |
|
2 | # | |
3 | # The goal of this file is to gather a limited amount of revsets that allow a |
|
3 | # The goal of this file is to gather a limited amount of revsets that allow a | |
4 | # good coverage of the internal revsets mechanisms. Revsets included should not |
|
4 | # good coverage of the internal revsets mechanisms. Revsets included should not | |
5 | # be selected for their individual implementation, but for what they reveal of |
|
5 | # be selected for their individual implementation, but for what they reveal of | |
6 | # the internal implementation of smartsets classes (and their interactions). |
|
6 | # the internal implementation of smartsets classes (and their interactions). | |
7 | # |
|
7 | # | |
8 | # Use and update this file when you change internal implementation of these |
|
8 | # Use and update this file when you change internal implementation of these | |
9 | # smartsets classes. Please include a comment explaining what each of your |
|
9 | # smartsets classes. Please include a comment explaining what each of your | |
10 | # addition is testing. Also check if your changes to the smartset class makes |
|
10 | # addition is testing. Also check if your changes to the smartset class makes | |
11 | # some of the tests inadequate and replace them with a new one testing the same |
|
11 | # some of the tests inadequate and replace them with a new one testing the same | |
12 | # behavior. |
|
12 | # behavior. | |
13 | # |
|
13 | # | |
14 | # If you want to benchmark revsets predicate itself, check 'all-revsets.txt'. |
|
14 | # If you want to benchmark revsets predicate itself, check 'all-revsets.txt'. | |
15 | # |
|
15 | # | |
16 | # The current content of this file is currently likely not reaching this goal |
|
16 | # The current content of this file is currently likely not reaching this goal | |
17 | # entirely, feel free, to audit its content and comment on each revset to |
|
17 | # entirely, feel free, to audit its content and comment on each revset to | |
18 | # highlight what internal mechanisms they test. |
|
18 | # highlight what internal mechanisms they test. | |
19 |
|
19 | |||
20 | all() |
|
20 | all() | |
21 | draft() |
|
21 | draft() | |
22 | ::tip |
|
22 | ::tip | |
23 | draft() and ::tip |
|
23 | draft() and ::tip | |
24 | ::tip and draft() |
|
24 | ::tip and draft() | |
25 | 0::tip |
|
25 | 0::tip | |
26 | roots(0::tip) |
|
26 | roots(0::tip) | |
27 | author(lmoscovicz) |
|
27 | author(lmoscovicz) | |
28 | author(mpm) |
|
28 | author(mpm) | |
29 | author(lmoscovicz) or author(mpm) |
|
29 | author(lmoscovicz) or author(mpm) | |
30 | author(mpm) or author(lmoscovicz) |
|
30 | author(mpm) or author(lmoscovicz) | |
31 | tip:0 |
|
31 | tip:0 | |
32 | 0:: |
|
32 | 0:: | |
33 | # those two `roots(...)` inputs are close to what phase movement use. |
|
33 | # those two `roots(...)` inputs are close to what phase movement use. | |
34 | roots((tip~100::) - (tip~100::tip)) |
|
34 | roots((tip~100::) - (tip~100::tip)) | |
35 | roots((0::) - (0::tip)) |
|
35 | roots((0::) - (0::tip)) | |
36 | 42:68 and roots(42:tip) |
|
36 | 42:68 and roots(42:tip) | |
37 | ::p1(p1(tip)):: |
|
37 | ::p1(p1(tip)):: | |
38 | public() |
|
38 | public() | |
39 | :10000 and public() |
|
39 | :10000 and public() | |
40 | draft() |
|
40 | draft() | |
41 | :10000 and draft() |
|
41 | :10000 and draft() | |
42 | roots((0:tip)::) |
|
42 | roots((0:tip)::) | |
43 | (not public() - obsolete()) |
|
43 | (not public() - obsolete()) | |
44 | (_intlist('20000\x0020001')) and merge() |
|
44 | (_intlist('20000\x0020001')) and merge() | |
45 | parents(20000) |
|
45 | parents(20000) | |
46 | (20000::) - (20000) |
|
46 | (20000::) - (20000) | |
47 | # The one below is used by rebase |
|
47 | # The one below is used by rebase | |
48 | (children(ancestor(tip~5, tip)) and ::(tip~5)):: |
|
48 | (children(ancestor(tip~5, tip)) and ::(tip~5)):: | |
|
49 | heads(commonancestors(last(head(), 2))) |
General Comments 0
You need to be logged in to leave comments.
Login now