##// END OF EJS Templates
base-revsets: use an author that actually exercises a lot of changesets...
Raphaël Gomès -
r52499:55e7784e default
parent child Browse files
Show More
@@ -1,159 +1,159 b''
1 1 # All revsets ever used with revsetbenchmarks.py script
2 2 #
3 3 # The goal of this file is to gather all revsets ever used for benchmarking
4 4 # revset's performance. It should be used to gather revsets that test a
5 5 # specific usecase or a specific implementation of revset predicates.
6 6 # If you are working on the smartset implementation itself, check
7 7 # 'base-revsets.txt'.
8 8 #
9 9 # Please update this file with any revsets you use for benchmarking a change so
10 10 # that future contributors can easily find and retest it when doing further
11 11 # modification. Feel free to highlight interesting variants if needed.
12 12
13 13
14 14 ## Revset from this section are all extracted from changelog when this file was
15 15 # created. Feel free to dig and improve documentation.
16 16
17 17 # Used in revision da05fe01170b
18 18 (20000::) - (20000)
19 19 # Used in revision 95af98616aa7
20 20 parents(20000)
21 21 # Used in revision 186fd06283b4
22 22 (_intlist('20000\x0020001')) and merge()
23 23 # Used in revision 911f5a6579d1
24 24 p1(20000)
25 25 p2(10000)
26 26 # Used in revision b6dc3b79bb25
27 27 0::
28 28 # Used in revision faf4f63533ff
29 29 bookmark()
30 30 # Used in revision 22ba2c0825da
31 31 tip~25
32 32 # Used in revision 0cf46b8298fe
33 33 bisect(range)
34 34 # Used in revision 5b65429721d5
35 35 divergent()
36 36 # Used in revision 6261b9c549a2
37 37 file(COPYING)
38 38 # Used in revision 44f471102f3a
39 39 follow(COPYING)
40 40 # Used in revision 8040a44aab1c
41 41 origin(tip)
42 42 # Used in revision bbf4f3dfd700
43 43 rev(25)
44 44 # Used in revision a428db9ab61d
45 45 p1()
46 46 # Used in revision c1546d7400ef
47 47 min(0::)
48 48 # Used in revision 546fa6576815
49 author(lmoscovicz) or author(olivia)
50 author(olivia) or author(lmoscovicz)
49 author(lmoscovicz) or author("pierre-yves")
50 author("pierre-yves") or author(lmoscovicz)
51 51 # Used in revision 9bfe68357c01
52 52 public() and id("d82e2223f132")
53 53 # Used in revision ba89f7b542c9
54 54 rev(25)
55 55 # Used in revision eb763217152a
56 56 rev(210000)
57 57 # Used in revision 69524a05a7fa
58 58 10:100
59 59 parents(10):parents(100)
60 60 # Used in revision 6f1b8b3f12fd
61 61 100~5
62 62 parents(100)~5
63 63 (100~5)~5
64 64 # Used in revision 7a42e5d4c418
65 65 children(tip~100)
66 66 # Used in revision 7e8737e6ab08
67 67 100^1
68 68 parents(100)^1
69 69 (100^1)^1
70 70 # Used in revision 30e0dcd7c5ff
71 71 matching(100)
72 72 matching(parents(100))
73 73 # Used in revision aafeaba22826
74 74 0|1|2|3|4|5|6|7|8|9
75 75 # Used in revision 33c7a94d4dd0
76 76 tip:0
77 77 # Used in revision 7d369fae098e
78 78 (0:100000)
79 79 # Used in revision b333ca94403d
80 80 0 + 1 + 2 + ... + 200
81 81 0 + 1 + 2 + ... + 1000
82 82 sort(0 + 1 + 2 + ... + 200)
83 83 sort(0 + 1 + 2 + ... + 1000)
84 84 # Used in revision 7fbef7932af9
85 85 first(0 + 1 + 2 + ... + 1000)
86 86 # Used in revision ceaf04bb14ff
87 87 0:1000
88 88 # Used in revision 262e6ad93885
89 89 not public()
90 90 (tip~1000::) - public()
91 91 not public() and branch("default")
92 92 # Used in revision 15412bba5a68
93 93 0::tip
94 94
95 95 ## all the revsets from this section have been taken from the former central file
96 96 # for revset's benchmarking, they are undocumented for this reason.
97 97 all()
98 98 draft()
99 99 ::tip
100 100 draft() and ::tip
101 101 ::tip and draft()
102 102 author(lmoscovicz)
103 author(olivia)
103 author("pierre-yves")
104 104 ::p1(p1(tip))::
105 105 public()
106 106 :10000 and public()
107 107 :10000 and draft()
108 108 (not public() - obsolete())
109 109
110 110 # The one below is used by rebase
111 111 (children(ancestor(tip~5, tip)) and ::(tip~5))::
112 112
113 113 # those two `roots(...)` inputs are close to what phase movement use.
114 114 roots((tip~100::) - (tip~100::tip))
115 115 roots((0::) - (0::tip))
116 116
117 117 # more roots testing
118 118 roots(tip~100:)
119 119 roots(:42)
120 120 roots(not public())
121 121 roots((0:tip)::)
122 122 roots(0::tip)
123 123 42:68 and roots(42:tip)
124 124 # Used in revision f140d6207cca
125 125 roots(0:tip)
126 126 # test disjoint set with multiple roots
127 127 roots((:42) + (tip~42:))
128 128
129 129 # Testing the behavior of "head()" in various situations
130 130 head()
131 131 head() - public()
132 132 draft() and head()
133 head() and author("olivia")
133 head() and author("pierre-yves")
134 134
135 135 # testing the mutable phases set
136 136 draft()
137 137 secret()
138 138
139 139 # test finding common ancestors
140 140 heads(commonancestors(last(head(), 2)))
141 141 heads(commonancestors(head()))
142 142
143 143 # more heads testing
144 144 heads(all())
145 145 heads(-10000:-1)
146 146 (-5000:-1000) and heads(-10000:-1)
147 147 heads(matching(tip, "author"))
148 148 heads(matching(tip, "author")) and -10000:-1
149 149 (-10000:-1) and heads(matching(tip, "author"))
150 150 # more roots testing
151 151 roots(all())
152 152 roots(-10000:-1)
153 153 (-5000:-1000) and roots(-10000:-1)
154 154 roots(matching(tip, "author"))
155 155 roots(matching(tip, "author")) and -10000:-1
156 156 (-10000:-1) and roots(matching(tip, "author"))
157 157 only(max(head()))
158 158 only(max(head()), min(head()))
159 159 only(max(head()), limit(head(), 1, 1))
@@ -1,52 +1,52 b''
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 author(olivia)
29 author(lmoscovicz) or author(olivia)
30 author(olivia) or author(lmoscovicz)
28 author("pierre-yves")
29 author(lmoscovicz) or author("pierre-yves")
30 author("pierre-yves") 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 50 heads(-10000:-1)
51 51 roots(-10000:-1)
52 52 only(max(head()), min(head()))
General Comments 0
You need to be logged in to leave comments. Login now