Show More
@@ -1,49 +1,52 | |||||
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))) |
|
49 | heads(commonancestors(last(head(), 2))) | |
|
50 | heads(-10000:-1) | |||
|
51 | roots(-10000:-1) | |||
|
52 | only(max(head()), min(head())) |
General Comments 0
You need to be logged in to leave comments.
Login now