Show More
@@ -1,49 +1,52 | |||
|
1 | 1 | # Base Revsets to be used with revsetbenchmarks.py script |
|
2 | 2 | # |
|
3 | 3 | # The goal of this file is to gather a limited amount of revsets that allow a |
|
4 | 4 | # good coverage of the internal revsets mechanisms. Revsets included should not |
|
5 | 5 | # be selected for their individual implementation, but for what they reveal of |
|
6 | 6 | # the internal implementation of smartsets classes (and their interactions). |
|
7 | 7 | # |
|
8 | 8 | # Use and update this file when you change internal implementation of these |
|
9 | 9 | # smartsets classes. Please include a comment explaining what each of your |
|
10 | 10 | # addition is testing. Also check if your changes to the smartset class makes |
|
11 | 11 | # some of the tests inadequate and replace them with a new one testing the same |
|
12 | 12 | # behavior. |
|
13 | 13 | # |
|
14 | 14 | # If you want to benchmark revsets predicate itself, check 'all-revsets.txt'. |
|
15 | 15 | # |
|
16 | 16 | # The current content of this file is currently likely not reaching this goal |
|
17 | 17 | # entirely, feel free, to audit its content and comment on each revset to |
|
18 | 18 | # highlight what internal mechanisms they test. |
|
19 | 19 | |
|
20 | 20 | all() |
|
21 | 21 | draft() |
|
22 | 22 | ::tip |
|
23 | 23 | draft() and ::tip |
|
24 | 24 | ::tip and draft() |
|
25 | 25 | 0::tip |
|
26 | 26 | roots(0::tip) |
|
27 | 27 | author(lmoscovicz) |
|
28 | 28 | author(mpm) |
|
29 | 29 | author(lmoscovicz) or author(mpm) |
|
30 | 30 | author(mpm) or author(lmoscovicz) |
|
31 | 31 | tip:0 |
|
32 | 32 | 0:: |
|
33 | 33 | # those two `roots(...)` inputs are close to what phase movement use. |
|
34 | 34 | roots((tip~100::) - (tip~100::tip)) |
|
35 | 35 | roots((0::) - (0::tip)) |
|
36 | 36 | 42:68 and roots(42:tip) |
|
37 | 37 | ::p1(p1(tip)):: |
|
38 | 38 | public() |
|
39 | 39 | :10000 and public() |
|
40 | 40 | draft() |
|
41 | 41 | :10000 and draft() |
|
42 | 42 | roots((0:tip)::) |
|
43 | 43 | (not public() - obsolete()) |
|
44 | 44 | (_intlist('20000\x0020001')) and merge() |
|
45 | 45 | parents(20000) |
|
46 | 46 | (20000::) - (20000) |
|
47 | 47 | # The one below is used by rebase |
|
48 | 48 | (children(ancestor(tip~5, tip)) and ::(tip~5)):: |
|
49 | 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