On 09/05/2012 03:56 PM, Markus Glaser wrote:
Hi all,
I am trying to find a (any) html file in gerrit (trying to find out whether it is displayed as HTML in a browser, but that is not the issue here…). When I enter “html” in the search box, it apparently searches commit messages for html (?). When I try the search syntax as described here [1], I get an invalid query error. Is there any documentation on what search operators I can use or how the search works in general? Any hints are greatly appreciated :)
Cheers, Markus
[1] http://gerrit.googlecode.com/svn/documentation/2.1.4/user-search.html
Hi, Markus. I looked for the search syntax in the Gerrit docs -- by the way, you should probably be looking in https://gerrit.wikimedia.org/r/Documentation/user-search.html since that is congruent with our installation of Gerrit, version 2.4.2. I found the "file:^REGEX" operator, with the note:
"Currently this operator is only available on a watched project and may not be used in the search bar."
I'm sorry for the trouble. For your purpose, I suggest you create a quick HTML page and commit it into the test/mediawiki/extensions/examples repository.
The search examples in the Gerrit documentation are fairly useful. A few searches I often use:
* status: and project: search, as in https://gerrit.wikimedia.org/r/#/q/status:open+project:%5Emediawiki.*,n,z and https://gerrit.wikimedia.org/r/#/q/status:open+project:mediawiki/extensions/...
* "what patchsets haven't gotten reviewed yet?" search: https://gerrit.wikimedia.org/r/#/q/-CodeReview%252B1+-CodeReview%252B2+-Code...
* owner: search, as in https://gerrit.wikimedia.org/r/#/q/owner:preilly,n,z or https://gerrit.wikimedia.org/r/#/q/status:merged+-owner:L10n-bot,n,z (using minus to exclude localization bot commits)
* searching commit messages, as in https://gerrit.wikimedia.org/r/#/q/message:performance,n,z