DeletePreconditions: Stop using deprecated RefDatabase.getRefs(prefix)

Use RefDatabase.getRefsByPrefix instead, as recommended in the
deprecation message.

The previously used getRefs stripped off the prefix from the returned
set, while getRefsByPrefix does not. However the constructed
Branch.NameKey remains as before, hence nothing more to change herein.

Change-Id: I93133b1a2d9965c29d7afda159623657abc4897c
1 file changed
tree: 6cace5363df6c39598da199a4f425a97e550c934
  1. .bazelignore
  2. .bazelrc
  3. .gitignore
  4. .settings/
  5. BUILD
  6. README.md
  7. WORKSPACE
  8. bazlets.bzl
  9. external_plugin_deps.bzl
  10. gr-delete-repo/
  11. plugin.html
  12. src/
  13. tools/
README.md

Delete project plugin for Gerrit Code Review

A plugin which allows projects to be deleted from Gerrit via an SSH command, REST API or the Project settings screen.

Build Status