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. .settings/
  2. gr-delete-repo/
  3. src/
  4. tools/
  5. .bazelignore
  6. .bazelrc
  7. .gitignore
  8. bazlets.bzl
  9. BUILD
  10. external_plugin_deps.bzl
  11. plugin.html
  12. README.md
  13. WORKSPACE
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