Buck: Update Python version prerequisite: 2.7 is required

Change-Id: I25f293b872c9532fbdcc8aa016f2edd3fcb159eb
MergeabilityChecker: Fix isStale() optimization

Change copy constructor is missing to copy the value of lastSha1MergeTested.
MergeabilityChecker relies on this value to be set to skip unnecessary
mergeability status reevaluation and no-op database and index operations.

Change-Id: Id4ef8388b026a68d5f1d97ee89c526a04797c5dc
Make gitweb prompt for authorization

Make gitweb return a 401 UNAUTHORIZED response if the user isn't
currently logged in and the project can't be found.

This response is uniform to cover both the cases where anonymous
doesn't have access to the project, or if the project just doesn't
exist.

If the user is authorized then a 404 is continued to be returned.

Bug: Issue 2595
Change-Id: I199a725fc3ec73e3493cadb6ccf2d7ad54262a2e
Fix consultRules so that it does not bail out on RuntimeException

This problem was causing internal server error in Gerrit GUI on browsing
open changes in case one or more projects had broken rules.pl in meta
config.

Change-Id: Ib1395a5d48abd0150a9b2e0c3680cb39ae186f1a
Signed-off-by: Eryk Szymanski <eryksz@gmail.com>
Merge "Buck: Update Python version prerequisite: 2.7 is required"
Clarify the change detail REST API response info

Gerrit change detail response contains only the highest ordered result
however the sample shows 2 results.  This change updates the sample
response for accuracy and adds an explanation for the result
calculation.

Bug: issue 2723
Change-Id: I0f5eedfb8373b40d99bf96ddf7326bc255b2bb79
Merge "Clarify the change detail REST API response info"
Merge "Make gitweb prompt for authorization"
Merge branch 'stable-2.9'

* stable-2.9:
  MergeabilityChecker: Fix isStale() optimization

Change-Id: I23e439069d36177d13cbb8cae3694729c34a43ac
Buck: Remove Python 2.6 compatibility workarounds

The check_output method is only available from Python 2.7, so a wrapper
method was introduced for compatibility with 2.6.

The ZipFile class does not include context manager support in Python
2.6, so the file download code was written to explicitly open and close
the zip files.

Since Buck itself now requires at least Python 2.7, these workarounds
are no longer necessary.  Remove them.

Also, tidy up a few minor PEP-8 coding style violations in the modified
files.

Change-Id: I9a1b25ddf7494e25ccadeaed0c1d85cd1ce2fd09
Merge "Buck: Remove Python 2.6 compatibility workarounds"
Add detailed thread counts to the show-caches command

If the new --show-threads option of the show-caches command is set,
the command prints out detailed counts for Gerrit specific threads.

Change-Id: I05fd70b3e8731d75fe3281da4e59a8117784092e
Merge "Add detailed thread counts to the show-caches command"
Allow to schedule a task to run gc for all projects

The (global) schedule can be configured in "gerrit.config" by specifying
startTime and interval. The "startTime" can be specified in section "gc"
in the following format:
startTime = <hours>:<minutes>
or
startTime = <day of week> <hours>:<minutes>
The "interval" can be given using the usual time unit suffixes.

Change-Id: I16e92c353d0fa05c020fc18da4ed1f5825ad677c
Merge "Allow to schedule a task to run gc for all projects"
Remove unused abbreviation code from LabelType

Change-Id: I511de4a38ba5bdb3b8cbec3e0428446b62216272
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
Merge "Remove unused abbreviation code from LabelType"
Set Last-Modified on MarkDown->HTML plugin pages

When a Plugin MarkDown file is served and transparently
converted into an HTML page, the HTTP Last-Modified
field was set on the cached resource but *NOT* on
the returned HTTP response.

This was causing a second HTTP 200 even if the resource
was actually not modified from the first request.

With this fix, the second response to the browser
will be an HTTP 304 (not modified) as it should be.

Change-Id: I9304bde5f9633b2b2f965e9d632303fd022d6651
Merge "Set Last-Modified on MarkDown->HTML plugin pages"
Link to the query string syntax from the rest-api-changes documentation

Change-Id: Id12fe3d681d6b253a15a0ce1ca8d7ddbb8343353