Thank you Sumana! I know a lot more about searching in gerrit now, which helps a lot in general :)
Cheers, Markus -----Ursprüngliche Nachricht----- Von: Sumana Harihareswara [mailto:suma...@wikimedia.org] Gesendet: Donnerstag, 6. September 2012 19:18 An: Wikimedia developers Cc: Markus Glaser Betreff: Re: [Wikitech-l] gerrit search 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:^mediawiki.*,n,z and https://gerrit.wikimedia.org/r/#/q/status:open+project:mediawiki/extensions/ProofreadPage,n,z * "what patchsets haven't gotten reviewed yet?" search: https://gerrit.wikimedia.org/r/#/q/-CodeReview%252B1+-CodeReview%252B2+-CodeReview-1+-CodeReview-2+project:%255Emediawiki.*,n,z * 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 -- Sumana Harihareswara Engineering Community Manager Wikimedia Foundation _______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l