Shawn O. Pearce | 51d008d | 2010-07-16 18:34:31 -0700 | [diff] [blame] | 1 | Gerrit Code Review - Searching Changes |
| 2 | ====================================== |
| 3 | |
| 4 | Default Searches |
| 5 | ---------------- |
| 6 | |
| 7 | Most basic searches can be viewed by clicking on a link along the top |
| 8 | menu bar. The link will prefill the search box with a common search |
| 9 | query, execute it, and present the results. If exactly one change |
| 10 | matches the search, the change will be presented instead of a list. |
| 11 | |
| 12 | |
Karsten Dambekalns | a7f72a2 | 2011-03-25 14:21:59 +0100 | [diff] [blame] | 13 | [options="header"] |
| 14 | |================================================= |
| 15 | |Description | Default Query |
| 16 | |All > Open | status:open '(or is:open)' |
| 17 | |All > Merged | status:merged |
| 18 | |All > Abandoned | status:abandoned |
Deniz Türkoglu | d6799b1d | 2012-05-10 11:20:56 -0700 | [diff] [blame] | 19 | |My > Drafts | is:draft |
Karsten Dambekalns | a7f72a2 | 2011-03-25 14:21:59 +0100 | [diff] [blame] | 20 | |My > Watched Changes | status:open is:watched |
| 21 | |My > Starred Changes | is:starred |
Deniz Türkoglu | d6799b1d | 2012-05-10 11:20:56 -0700 | [diff] [blame] | 22 | |My > Draft Comments | has:draft |
Karsten Dambekalns | a7f72a2 | 2011-03-25 14:21:59 +0100 | [diff] [blame] | 23 | |Open changes in Foo | status:open project:Foo |
| 24 | |================================================= |
Shawn O. Pearce | 51d008d | 2010-07-16 18:34:31 -0700 | [diff] [blame] | 25 | |
| 26 | Basic Change Search |
| 27 | ------------------- |
| 28 | |
| 29 | Similar to many popular search engines on the web, just enter some |
| 30 | text and let Gerrit figure out the meaning: |
| 31 | |
Karsten Dambekalns | a7f72a2 | 2011-03-25 14:21:59 +0100 | [diff] [blame] | 32 | [options="header"] |
| 33 | |============================================================= |
| 34 | |Description | Examples |
| 35 | |Legacy numerical id | 15183 |
| 36 | |Full or abbreviated Change-Id | Ic0ff33 |
| 37 | |Full or abbreviated commit SHA-1 | d81b32ef |
| 38 | |Email address | user@example.com |
| 39 | |Approval requirement | CodeReview>=+2, Verified=1 |
| 40 | |============================================================= |
Shawn O. Pearce | 51d008d | 2010-07-16 18:34:31 -0700 | [diff] [blame] | 41 | |
| 42 | |
| 43 | Search Operators |
| 44 | ---------------- |
| 45 | |
| 46 | Operators act as restrictions on the search. As more operators |
| 47 | are added to the same query string, they further restrict the |
monica.dionisio | 7dfa0d2 | 2010-08-27 11:46:33 -0300 | [diff] [blame] | 48 | returned results. Search can also be performed by typing only a |
| 49 | text with no operator. It will try to match a project name by |
| 50 | substring. |
| 51 | |
| 52 | E.g. Searching for just "gerrit is:starred" will try to match a |
| 53 | project name by "gerrit" as substring. |
Shawn O. Pearce | 51d008d | 2010-07-16 18:34:31 -0700 | [diff] [blame] | 54 | |
Shawn O. Pearce | 51e058f6 | 2010-07-19 10:30:37 -0700 | [diff] [blame] | 55 | [[age]] |
| 56 | age:'AGE':: |
| 57 | + |
| 58 | Amount of time that has expired since the change was last updated |
| 59 | with a review comment or new patch set. The age must be specified |
| 60 | to include a unit suffix, for example `age:2d`: |
| 61 | + |
| 62 | * s, sec, second, seconds |
| 63 | * m, min, minute, minutes |
| 64 | * h, hr, hour, hours |
| 65 | * d, day, days |
| 66 | * w, week, weeks (`1 week` is treated as `7 days`) |
| 67 | * mon, month, months (`1 month` is treated as `30 days`) |
| 68 | * y, year, years (`1 year` is treated as `365 days`) |
| 69 | |
Shawn O. Pearce | 51d008d | 2010-07-16 18:34:31 -0700 | [diff] [blame] | 70 | [[change]] |
| 71 | change:'ID':: |
| 72 | + |
| 73 | Either a legacy numerical 'ID' such as 15183, or a newer style |
| 74 | Change-Id that was scraped out of the commit message. |
| 75 | |
| 76 | [[owner]] |
| 77 | owner:'USER':: |
| 78 | + |
Shawn O. Pearce | 068a0d8 | 2012-04-07 14:59:11 -0700 | [diff] [blame] | 79 | Changes originally submitted by 'USER'. The special case of |
| 80 | `owner:self` will find changes owned by the caller. |
Shawn O. Pearce | 51d008d | 2010-07-16 18:34:31 -0700 | [diff] [blame] | 81 | |
Martin Fick | bcb5b9b | 2011-01-13 13:16:20 -0700 | [diff] [blame] | 82 | [[ownerin]] |
| 83 | ownerin:'GROUP':: |
| 84 | + |
| 85 | Changes originally submitted by a user in 'GROUP'. |
| 86 | |
Shawn O. Pearce | 51d008d | 2010-07-16 18:34:31 -0700 | [diff] [blame] | 87 | [[reviewer]] |
| 88 | reviewer:'USER':: |
| 89 | + |
Shawn O. Pearce | 068a0d8 | 2012-04-07 14:59:11 -0700 | [diff] [blame] | 90 | Changes that have been, or need to be, reviewed by 'USER'. The |
| 91 | special case of `reviewer:self` will find changes where the caller |
| 92 | has been added as a reviewer. |
Shawn O. Pearce | 51d008d | 2010-07-16 18:34:31 -0700 | [diff] [blame] | 93 | |
Martin Fick | bcb5b9b | 2011-01-13 13:16:20 -0700 | [diff] [blame] | 94 | [[reviewerin]] |
| 95 | reviewerin:'GROUP':: |
| 96 | + |
| 97 | Changes that have been, or need to be, reviewed by a user in 'GROUP'. |
| 98 | |
Shawn O. Pearce | 51d008d | 2010-07-16 18:34:31 -0700 | [diff] [blame] | 99 | [[commit]] |
| 100 | commit:'SHA1':: |
| 101 | + |
| 102 | Changes where 'SHA1' is one of the patch sets of the change. |
| 103 | |
| 104 | [[project]] |
| 105 | project:'PROJECT':: |
| 106 | + |
Edwin Kempin | f1acbb8 | 2011-09-15 12:49:42 +0200 | [diff] [blame] | 107 | Changes occurring in 'PROJECT'. If 'PROJECT' starts with `^` it |
Magnus Bäck | e561183 | 2011-02-02 08:57:15 +0100 | [diff] [blame] | 108 | matches project names by regular expression. The |
| 109 | link:http://www.brics.dk/automaton/[dk.brics.automaton |
| 110 | library] is used for evaluation of such patterns. |
| 111 | |
Shawn O. Pearce | 51d008d | 2010-07-16 18:34:31 -0700 | [diff] [blame] | 112 | |
| 113 | [[branch]] |
| 114 | branch:'BRANCH':: |
| 115 | + |
Edwin Kempin | ad921cd | 2012-03-27 16:00:56 +0200 | [diff] [blame] | 116 | Changes for 'BRANCH'. The branch name is either the short name shown |
| 117 | in the web interface or the full name of the destination branch with |
| 118 | the traditional 'refs/heads/' prefix. |
Shawn O. Pearce | 082ed41 | 2010-08-28 12:38:32 -0700 | [diff] [blame] | 119 | + |
| 120 | If 'BRANCH' starts with `^` it matches branch names by regular |
Magnus Bäck | e561183 | 2011-02-02 08:57:15 +0100 | [diff] [blame] | 121 | expression patterns. The |
| 122 | link:http://www.brics.dk/automaton/[dk.brics.automaton |
| 123 | library] is used for evaluation of such patterns. |
Shawn O. Pearce | 51d008d | 2010-07-16 18:34:31 -0700 | [diff] [blame] | 124 | |
| 125 | [[topic]] |
| 126 | topic:'TOPIC':: |
| 127 | + |
| 128 | Changes whose designated topic at upload was 'TOPIC'. This is |
| 129 | often combined with 'branch:' and 'project:' operators to select |
| 130 | all related changes in a series. |
Shawn O. Pearce | 082ed41 | 2010-08-28 12:38:32 -0700 | [diff] [blame] | 131 | + |
| 132 | If 'TOPIC' starts with `^` it matches topic names by regular |
Magnus Bäck | e561183 | 2011-02-02 08:57:15 +0100 | [diff] [blame] | 133 | expression patterns. The |
| 134 | link:http://www.brics.dk/automaton/[dk.brics.automaton |
| 135 | library] is used for evaluation of such patterns. |
Shawn O. Pearce | 51d008d | 2010-07-16 18:34:31 -0700 | [diff] [blame] | 136 | |
| 137 | [[ref]] |
| 138 | ref:'REF':: |
| 139 | + |
| 140 | Changes where the destination branch is exactly the given 'REF' |
| 141 | name. Since 'REF' is absolute from the top of the repository it |
| 142 | must start with 'refs/'. |
Shawn O. Pearce | 082ed41 | 2010-08-28 12:38:32 -0700 | [diff] [blame] | 143 | + |
| 144 | If 'REF' starts with `^` it matches reference names by regular |
Magnus Bäck | e561183 | 2011-02-02 08:57:15 +0100 | [diff] [blame] | 145 | expression patterns. The |
| 146 | link:http://www.brics.dk/automaton/[dk.brics.automaton |
| 147 | library] is used for evaluation of such patterns. |
Shawn O. Pearce | 51d008d | 2010-07-16 18:34:31 -0700 | [diff] [blame] | 148 | |
Karsten Dambekalns | a7f72a2 | 2011-03-25 14:21:59 +0100 | [diff] [blame] | 149 | [[tr,bug]] |
Shawn O. Pearce | 51d008d | 2010-07-16 18:34:31 -0700 | [diff] [blame] | 150 | tr:'ID', bug:'ID':: |
| 151 | + |
David Pursehouse | 221d4f6 | 2012-06-08 17:38:08 +0900 | [diff] [blame] | 152 | Search for changes whose commit message contains 'ID' and matches |
Shawn O. Pearce | 51d008d | 2010-07-16 18:34:31 -0700 | [diff] [blame] | 153 | one or more of the |
| 154 | link:config-gerrit.html#trackingid[trackingid sections] |
| 155 | in the server's configuration file. This is typically used to |
| 156 | search for changes that fix a bug or defect by the issue tracking |
| 157 | system's issue identifier. |
| 158 | |
| 159 | [[label]] |
| 160 | label:'VALUE':: |
| 161 | + |
| 162 | Matches changes where the approval score 'VALUE' has been set during |
| 163 | a review. See <<labels,labels>> below for more detail on the format |
| 164 | of the argument. |
| 165 | |
monica.dionisio | 70a7ca0 | 2010-08-25 14:46:13 -0300 | [diff] [blame] | 166 | [[message]] |
| 167 | message:'MESSAGE':: |
| 168 | + |
David Pursehouse | 221d4f6 | 2012-06-08 17:38:08 +0900 | [diff] [blame] | 169 | Changes that match 'MESSAGE' arbitrary string in the commit message body. |
monica.dionisio | 70a7ca0 | 2010-08-25 14:46:13 -0300 | [diff] [blame] | 170 | |
Shawn O. Pearce | 50756b9 | 2010-07-19 17:58:25 -0700 | [diff] [blame] | 171 | [[file]] |
Karsten Dambekalns | a7f72a2 | 2011-03-25 14:21:59 +0100 | [diff] [blame] | 172 | file:^'REGEX':: |
Shawn O. Pearce | 50756b9 | 2010-07-19 17:58:25 -0700 | [diff] [blame] | 173 | + |
| 174 | Matches any change where REGEX matches a file that was affected |
| 175 | by the change. The regular expression pattern must start with |
Karsten Dambekalns | a7f72a2 | 2011-03-25 14:21:59 +0100 | [diff] [blame] | 176 | `^`. For example, to match all XML files use `file:^.*\.xml$`. |
Magnus Bäck | e561183 | 2011-02-02 08:57:15 +0100 | [diff] [blame] | 177 | The link:http://www.brics.dk/automaton/[dk.brics.automaton |
| 178 | library] is used for the evaluation of such patterns. |
rafael.rabelosilva | aa5bca7 | 2010-08-26 11:04:53 +0200 | [diff] [blame] | 179 | + |
Karsten Dambekalns | a7f72a2 | 2011-03-25 14:21:59 +0100 | [diff] [blame] | 180 | The `^` required at the beginning of the regular expression not only |
rafael.rabelosilva | aa5bca7 | 2010-08-26 11:04:53 +0200 | [diff] [blame] | 181 | denotes a regular expression, but it also has the usual meaning of |
| 182 | anchoring the match to the start of the string. To match all Java |
| 183 | files, use `file:^.*\.java`. |
| 184 | + |
Edwin Kempin | cdb0e00 | 2011-09-08 14:23:30 +0200 | [diff] [blame] | 185 | The entire regular expression pattern, including the `^` character, |
rafael.rabelosilva | aa5bca7 | 2010-08-26 11:04:53 +0200 | [diff] [blame] | 186 | should be double quoted when using more complex construction (like |
| 187 | ones using a bracket expression). For example, to match all XML |
| 188 | files named like 'name1.xml', 'name2.xml', and 'name3.xml' use |
Edwin Kempin | cdb0e00 | 2011-09-08 14:23:30 +0200 | [diff] [blame] | 189 | `file:"^name[1-3].xml"`. |
rafael.rabelosilva | aa5bca7 | 2010-08-26 11:04:53 +0200 | [diff] [blame] | 190 | + |
Shawn O. Pearce | 50756b9 | 2010-07-19 17:58:25 -0700 | [diff] [blame] | 191 | Currently this operator is only available on a watched project |
| 192 | and may not be used in the search bar. |
| 193 | |
Shawn O. Pearce | 51d008d | 2010-07-16 18:34:31 -0700 | [diff] [blame] | 194 | [[has]] |
| 195 | has:draft:: |
| 196 | + |
| 197 | True if there is a draft comment saved by the current user. |
| 198 | |
| 199 | has:star:: |
| 200 | + |
| 201 | Same as 'is:starred', true if the change has been starred by the |
| 202 | current user. |
| 203 | |
| 204 | [[is]] |
| 205 | is:starred:: |
| 206 | + |
| 207 | Same as 'has:star', true if the change has been starred by the |
| 208 | current user. |
| 209 | |
| 210 | is:watched:: |
| 211 | + |
| 212 | True if this change matches one of the current user's watch filters, |
| 213 | and thus is likely to notify the user when it updates. |
| 214 | |
| 215 | is:reviewed:: |
| 216 | + |
| 217 | True if there is at least one non-zero score on the change, in any |
| 218 | approval category, by any user. |
| 219 | |
Shawn O. Pearce | 068a0d8 | 2012-04-07 14:59:11 -0700 | [diff] [blame] | 220 | is:owner:: |
| 221 | + |
| 222 | True on any change where the current user is the change owner. |
| 223 | Same as `owner:self`. |
| 224 | |
| 225 | is:reviewer:: |
| 226 | + |
| 227 | True on any change where the current user is a reviewer. |
| 228 | Same as `reviewer:self`. |
| 229 | |
Shawn O. Pearce | 51d008d | 2010-07-16 18:34:31 -0700 | [diff] [blame] | 230 | is:open:: |
| 231 | + |
David Pursehouse | 221d4f6 | 2012-06-08 17:38:08 +0900 | [diff] [blame] | 232 | True if the change is either open or submitted, merge pending. |
Shawn O. Pearce | 51d008d | 2010-07-16 18:34:31 -0700 | [diff] [blame] | 233 | |
Deniz Türkoglu | d6799b1d | 2012-05-10 11:20:56 -0700 | [diff] [blame] | 234 | is:draft:: |
| 235 | + |
| 236 | True if the change is a draft. |
| 237 | |
Shawn O. Pearce | 51d008d | 2010-07-16 18:34:31 -0700 | [diff] [blame] | 238 | is:closed:: |
| 239 | + |
| 240 | True if the change is either merged or abandoned. |
| 241 | |
| 242 | is:submitted, is:merged, is:abandoned:: |
| 243 | + |
| 244 | Same as <<status,status:'STATE'>>. |
| 245 | |
| 246 | [[status]] |
| 247 | status:open:: |
| 248 | + |
David Pursehouse | 221d4f6 | 2012-06-08 17:38:08 +0900 | [diff] [blame] | 249 | True if the change state is either 'review in progress' or 'submitted, |
Shawn O. Pearce | 51d008d | 2010-07-16 18:34:31 -0700 | [diff] [blame] | 250 | merge pending'. |
| 251 | |
| 252 | status:reviewed:: |
| 253 | + |
| 254 | Same as 'is:reviewed', matches if there is at least one non-zero |
| 255 | score on the change, in any approval category, by any user. |
| 256 | |
| 257 | status:submitted:: |
| 258 | + |
| 259 | Change has been submitted, but is waiting for a dependency. |
| 260 | |
| 261 | status:closed:: |
| 262 | + |
| 263 | True if the change is either 'merged' or 'abandoned'. |
| 264 | |
| 265 | status:merged:: |
| 266 | + |
| 267 | Change has been merged into the branch. |
| 268 | |
| 269 | status:abandoned:: |
| 270 | + |
Edwin Kempin | 4c903b8 | 2012-06-13 16:06:07 +0200 | [diff] [blame] | 271 | Change has been abandoned. |
Shawn O. Pearce | 51d008d | 2010-07-16 18:34:31 -0700 | [diff] [blame] | 272 | |
| 273 | |
| 274 | Boolean Operators |
| 275 | ----------------- |
| 276 | |
| 277 | Unless otherwise specified, operators are joined using the `AND` |
| 278 | boolean operator, thereby restricting the search results. |
| 279 | |
| 280 | Parentheses can be used to force a particular precendence on complex |
| 281 | operator expressions, otherwise OR has higher precendence than AND. |
| 282 | |
| 283 | Negation |
| 284 | ~~~~~~~~ |
| 285 | Any operator can be negated by prefixing it with `-`, for example |
| 286 | `-is:starred` is the exact opposite of `is:starred` and will |
| 287 | therefore return changes that are *not* starred by the current user. |
| 288 | |
| 289 | The operator `NOT` (in all caps) is a synonym. |
| 290 | |
| 291 | AND |
| 292 | ~~~ |
| 293 | The boolean operator `AND` (in all caps) can be used to join two |
| 294 | other operators together. This results in a restriction of the |
| 295 | results, returning only changes that match both operators. |
| 296 | |
| 297 | OR |
| 298 | ~~ |
| 299 | The boolean operator `OR` (in all caps) can be used to find changes |
| 300 | that match either operator. This increases the nubmer of results |
| 301 | that are returned, as more changes are considered. |
| 302 | |
| 303 | |
| 304 | [[labels]] |
| 305 | Labels |
| 306 | ------ |
David Pursehouse | 221d4f6 | 2012-06-08 17:38:08 +0900 | [diff] [blame] | 307 | Label operators can be used to match approval scores given during |
Shawn O. Pearce | 51d008d | 2010-07-16 18:34:31 -0700 | [diff] [blame] | 308 | a code review. The specific set of supported labels depends on |
| 309 | the server configuration, however `CodeReview` and `Verified` |
| 310 | are the default labels provided out of the box. |
| 311 | |
| 312 | A label name is any of the following: |
| 313 | |
| 314 | * The category name. If the category name contains spaces, |
| 315 | it must be wrapped in double quotes. Example: `label:"Code Review"`. |
| 316 | |
| 317 | * The name, without spaces. This avoids needing to use double quotes |
| 318 | for the common category Code Review. Example: `label:CodeReview`. |
| 319 | |
| 320 | * The internal short name. Example: `label:CRVW`, or `label:VRIF`. |
| 321 | |
| 322 | * The one or two character abbreviation shown in the column header |
| 323 | of change list pages. Example: `label:R` or `label:V`. |
| 324 | |
| 325 | A label name must be followed by a score, or an operator and a score. |
David Pursehouse | 221d4f6 | 2012-06-08 17:38:08 +0900 | [diff] [blame] | 326 | The easiest way to explain this is by example. |
Shawn O. Pearce | 51d008d | 2010-07-16 18:34:31 -0700 | [diff] [blame] | 327 | |
| 328 | `label:CodeReview=2`:: |
| 329 | `label:CodeReview=+2`:: |
| 330 | `label:CodeReview+2`:: |
| 331 | + |
Edwin Kempin | cdb0e00 | 2011-09-08 14:23:30 +0200 | [diff] [blame] | 332 | Matches changes where there is at least one +2 score for Code Review. |
| 333 | The + prefix is optional for positive score values. If the + is used, |
Shawn O. Pearce | 51d008d | 2010-07-16 18:34:31 -0700 | [diff] [blame] | 334 | the = operator is optional. |
| 335 | |
| 336 | `label:CodeReview=-2`:: |
| 337 | `label:CodeReview-2`:: |
| 338 | + |
| 339 | Matches changes where there is at least one -2 score for Code Review. |
| 340 | Because the negative sign is required, the = operator is optional. |
| 341 | |
| 342 | `label:CodeReview=1`:: |
| 343 | + |
| 344 | Matches changes where there is at least one +1 score for Code Review. |
| 345 | Scores of +2 are not matched, even though they are higher. |
| 346 | |
| 347 | `label:CodeReview>=1`:: |
| 348 | + |
| 349 | Matches changes with either a +1, +2, or any higher score. |
| 350 | |
| 351 | `label:CodeReview<=-1`:: |
| 352 | + |
| 353 | Matches changes with either a -1, -2, or any lower score. |
| 354 | |
| 355 | `is:open CodeReview+2 Verified+1 -Verified-1 -CodeReview-2`:: |
| 356 | + |
| 357 | Matches changes that are ready to be submitted. |
| 358 | |
| 359 | `is:open (Verified-1 OR CodeReview-2)`:: |
| 360 | + |
| 361 | Changes that are blocked from submission due to a blocking score. |
| 362 | |
| 363 | |
| 364 | Magical Operators |
| 365 | ----------------- |
| 366 | |
| 367 | Most of these operators exist to support features of Gerrit Code |
| 368 | Review, and are not meant to be accessed by the average end-user. |
| 369 | However, they are recognized by the query parser, and may prove |
| 370 | useful in limited contexts to administrators or power-users. |
| 371 | |
| 372 | visibleto:'USER-or-GROUP':: |
| 373 | + |
| 374 | Matches changes that are visible to 'USER' or to anyone who is a |
| 375 | member of 'GROUP'. Here group names may be specified as either |
| 376 | an internal group name, or if LDAP is being used, an external LDAP |
| 377 | group name. The value may be wrapped in double quotes to include |
| 378 | spaces or other special characters. For example, to match an LDAP |
| 379 | group: `visibleto:"CN=Developers, DC=example, DC=com"`. |
| 380 | + |
| 381 | This operator may be useful to test access control rules, however a |
| 382 | change can only be matched if both the current user and the supplied |
| 383 | user or group can see it. This is due to the implicit 'is:visible' |
| 384 | clause that is always added by the server. |
| 385 | |
| 386 | is:visible:: |
| 387 | + |
| 388 | Magical internal flag to prove the current user has access to read |
| 389 | the change. This flag is always added to any query. |
| 390 | |
| 391 | starredby:'USER':: |
| 392 | + |
Edwin Kempin | 8de47ac | 2011-02-28 10:30:46 +0100 | [diff] [blame] | 393 | Matches changes that have been starred by 'USER'. |
Shawn O. Pearce | 068a0d8 | 2012-04-07 14:59:11 -0700 | [diff] [blame] | 394 | The special case `starredby:self` applies to the caller. |
Shawn O. Pearce | 51d008d | 2010-07-16 18:34:31 -0700 | [diff] [blame] | 395 | |
| 396 | watchedby:'USER':: |
| 397 | + |
| 398 | Matches changes that 'USER' has configured watch filters for. |
Shawn O. Pearce | 068a0d8 | 2012-04-07 14:59:11 -0700 | [diff] [blame] | 399 | The special case `watchedby:self` applies to the caller. |
Shawn O. Pearce | 51d008d | 2010-07-16 18:34:31 -0700 | [diff] [blame] | 400 | |
| 401 | draftby:'USER':: |
| 402 | + |
David Pursehouse | 221d4f6 | 2012-06-08 17:38:08 +0900 | [diff] [blame] | 403 | Matches changes that 'USER' has left unpublished draft comments on. |
Shawn O. Pearce | 51d008d | 2010-07-16 18:34:31 -0700 | [diff] [blame] | 404 | Since the drafts are unpublished, it is not possible to see the |
Shawn O. Pearce | 068a0d8 | 2012-04-07 14:59:11 -0700 | [diff] [blame] | 405 | draft text, or even how many drafts there are. The special case |
| 406 | of `draftby:self` will find changes where the caller has created |
| 407 | a draft comment. |
Shawn O. Pearce | 51d008d | 2010-07-16 18:34:31 -0700 | [diff] [blame] | 408 | |
| 409 | limit:'CNT':: |
| 410 | + |
| 411 | Limit the returned results to no more than 'CNT' records. This is |
| 412 | automatically set to the page size configured in the current user's |
| 413 | preferences. Including it in a web query may lead to unpredictable |
| 414 | results with regards to pagination. |
| 415 | |
Karsten Dambekalns | a7f72a2 | 2011-03-25 14:21:59 +0100 | [diff] [blame] | 416 | resume_sortkey:'KEY':: |
Shawn O. Pearce | 14760b7 | 2010-07-19 09:44:46 -0700 | [diff] [blame] | 417 | + |
| 418 | Positions the low level scan routine to start from 'KEY' and |
| 419 | continue through changes from this point. This is most often used |
| 420 | for paginating result sets. Including this in a web query may lead |
| 421 | to unpredictable results. |
| 422 | |
Karsten Dambekalns | a7f72a2 | 2011-03-25 14:21:59 +0100 | [diff] [blame] | 423 | sortkey_after:'KEY', sortkey_before:'KEY':: |
Shawn O. Pearce | 51d008d | 2010-07-16 18:34:31 -0700 | [diff] [blame] | 424 | + |
| 425 | Restart the low level scan routine from 'KEY'. This is automatically |
| 426 | set by the pagination system as the user navigates through results |
| 427 | of a query. Including either value in a web query may lead to |
| 428 | unpredictable results. |
| 429 | |
| 430 | GERRIT |
| 431 | ------ |
| 432 | Part of link:index.html[Gerrit Code Review] |