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