##// END OF EJS Templates
revsetbenchmark: add more example for roots usages...
Boris Feld -
r41314:41f14e8f default
parent child Browse files
Show More
@@ -1,149 +1,156 b''
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()))
141 heads(commonancestors(head()))
142
142
143 # more heads testing
143 # more heads testing
144 heads(all())
144 heads(all())
145 heads(-10000:-1)
145 heads(-10000:-1)
146 (-5000:-1000) and heads(-10000:-1)
146 (-5000:-1000) and heads(-10000:-1)
147 heads(matching(tip, "author"))
147 heads(matching(tip, "author"))
148 heads(matching(tip, "author")) and -10000:-1
148 heads(matching(tip, "author")) and -10000:-1
149 (-10000:-1) and heads(matching(tip, "author"))
149 (-10000:-1) and heads(matching(tip, "author"))
150 # more roots testing
151 roots(all())
152 roots(-10000:-1)
153 (-5000:-1000) and roots(-10000:-1)
154 roots(matching(tip, "author"))
155 roots(matching(tip, "author")) and -10000:-1
156 (-10000:-1) and roots(matching(tip, "author"))
General Comments 0
You need to be logged in to leave comments. Login now