Revert "Make VisibleRefFilter.Filter reuse the refs passed from JGit."

This reverts commit b032a529f83892dfbdfb375c47a90d89756dd8ab. This
commit introduced an issue where tags were not replicated under certain
circumstances.

Bug: Issue 2500
Bug: Issue 1748
Change-Id: I9c902b99c7f656c7002cf3eab9e525f22a22fb85
Gracefully handle `buck audit` failure

Handle exception raised when invoking `buck audit` and exit
with an error message, instead of dumping a python Traceback.

Change-Id: I3786c4eddffa03117f4437314fc12ee68c689a85
Restrict the input of plugin_archetype_deploy.sh

Input mispelled option of plugin_archetype_deploy.sh
it starts to run. Restrict the input to avoid this error.
Add confirm before run.

Change-Id: I6fdc8b592679c45891210261a47285171b50e35f
Fix broken formatting in changes REST documentation

Change-Id: Ie17c25fb8f1f5956e79c750316b8086419406210
Fix Guice module auto-discover for plugin providers

When a plugin provider was using the AbstractPreloadedPluginScanner
to automatically scan its contents, the Guice modules were incorrectly
detected and wrongly assigned:

- Modules not initialised to null at the beginning of the scan
- SshModule incorrectly assigned to SysModule and the other way around
- Inner modules were clashing with named Guice modules
  e.g. install(new Module() { })

This fix brings much more sanity to module detection for plugin
providers (e.g. Groovy, Scala or other pluggable plugin formats).

Change-Id: I4edddd29acd0ff81cd61841bef8d2356ea20e716
Merge "Revert "Make VisibleRefFilter.Filter reuse the refs passed from JGit."" into stable-2.9
Run change hooks and ref-updated events after indexing is done.

The change hooks and ref-updated events were run parallel to the
change (re)indexing. This meant that an event-stream sent events
to the clients before the change indexing was finished. If a client
queried for that change immediately after receiving the event it
happened that the response was not-found as the indexing wasn't yet
done.

Although we haven't had issues with a ref-updated event processors,
firing this event will also wait for the indexing task to finish
as we never know if a ref-updated event processor may trigger a
change query.

Change-Id: Iff17c5aeb9675f3991f938d31ef5048ef5b3b956
Merge "Run change hooks and ref-updated events after indexing is done." into stable-2.9
Consistently refer to Change-Id in documentation

Some parts were referring to "Change-ID".

Change-Id: I5a3d23c854ffc4dc64b3292807eb32e8156bc2db
Set the version to 2.10-SNAPSHOT

Change-Id: I46d413a0e61b5356eb5702ee230785b8b1471ff1
Mention deprecation of sortkey parameters in 2.9 release notes

Bug: Issue 2878
Change-Id: Idd16d5c932b3237cbaeeb8fc8f31e3ebcbf45034
Minor improvements in the 'squash commits first' error documentation

Change-Id: I6ca51faa28fc785e2cd399c1ef8be9768c038bad
Merge "Gracefully handle `buck audit` failure" into stable-2.9
Make `-S` an alias of `--start` in changes query REST API

The option had been added with the name `-S`.  Change the name
to `--start` with `-S` as an alias, making it consistent with the
naming in other REST APIs.

Add the option to the documentation.

Remove the documentation of `-P` and `-N`. These options only exist
to support online reindexing from clients with outdated JS, and are
deprecated. Keeping them in the documentation will potentially
cause confusion.

Bug: Issue 2878
Change-Id: I992acf4a3d1aeebb1ef40c6fed1afcb0fe26fa92
Add full names for options on list projects REST API

Change-Id: I1dd7a8b2e27b8172cd8f11c9047063070fa6e698
Add full names for options on list groups REST API

Change-Id: I6663eda2adc00c493624438a16ecbf4818e740e1
Merge branch 'stable-2.9' into stable-2.10

* stable-2.9:
  Add full names for options on list groups REST API
  Add full names for options on list projects REST API
  Make `-S` an alias of `--start` in changes query REST API
  Mention deprecation of sortkey parameters in 2.9 release notes
  Run change hooks and ref-updated events after indexing is done.
  Fix broken formatting in changes REST documentation
  Restrict the input of plugin_archetype_deploy.sh
  Gracefully handle `buck audit` failure
  Revert "Make VisibleRefFilter.Filter reuse the refs passed from JGit."

Conflicts:
	gerrit-server/src/main/java/com/google/gerrit/server/change/PutTopic.java
	gerrit-server/src/main/java/com/google/gerrit/server/git/MergeOp.java
	tools/pack_war.py

Change-Id: I89a9b42c049ec1365ef6dec53c73c7a10a41e888
Merge branch stable-2.10

* stable-2.10:
  Add full names for options on list groups REST API
  Add full names for options on list projects REST API
  Make `-S` an alias of `--start` in changes query REST API
  Mention deprecation of sortkey parameters in 2.9 release notes
  Set the version to 2.10-SNAPSHOT
  Run change hooks and ref-updated events after indexing is done.
  Fix Guice module auto-discover for plugin providers
  Fix broken formatting in changes REST documentation
  Restrict the input of plugin_archetype_deploy.sh
  Gracefully handle `buck audit` failure
  Revert "Make VisibleRefFilter.Filter reuse the refs passed from JGit."

Conflicts:
	VERSION
	gerrit-extension-api/pom.xml
	gerrit-plugin-api/pom.xml
	gerrit-plugin-archetype/pom.xml
	gerrit-plugin-gwt-archetype/pom.xml
	gerrit-plugin-gwtui/pom.xml
	gerrit-plugin-js-archetype/pom.xml
	gerrit-war/pom.xml

Change-Id: I01f5e9ffa67058d914485c53c8c7b64643da4c84
Update pegdown to 1.4.2

Change-Id: I5318ec87976a18d8f20dae64d813461c2a3aff5b