Added support for rename in replication

Now rename-project also works in replica mode for http.

Added feature to automatically replicate rename-project to urls in
gerrit.config via rest api.

HttpClientProvider, HttpResponseHandler and HttpSession are adapted
from rest forwarding mechanism of high-availability plugin to perform
http requests since they can already perform http requests to other
gerrit instances successfully.

Adaptations were mainly done on access modifiers of HttpResponseHandler
and changing the success code for isSuccessful from SC_NO_CONTENT to
SC_OK. HttpSession has delete requests removed, since rename-project
only needs post request.

Mainly based on previous attemp from Icbe98eb6af9bffc38f4b882c149b9092f9701f3c

Change-Id: I1f4aa638a565a1f85fb1f710a65ac659b5273107
13 files changed
tree: 5bfbc5c0abb61877dfede37b7e593fd201468b12
  1. .settings/
  2. src/
  3. tools/
  4. .bazelignore
  5. .bazelrc
  6. .bazelversion
  7. .gitignore
  8. bazlets.bzl
  9. BUILD
  10. external_plugin_deps.bzl
  11. LICENSE
  12. README.md
  13. WORKSPACE
README.md

Rename project plugin for Gerrit Code Review

This plugin currently supports Gerrit version 2.14.X and 2.15.X with changes in reviewDb. Also supported is the noteDb alternative for Gerrit versions 2.15.X and above.

For more information, see: src/main/resources/Documentation/about.md