Fix deleting projects hosted in non standard location

I1212d0226 introduced the possibility of hosting repositories in
different locations. delete-projects, though, was not aware of this and
caused errors when trying to delete a project hosted in a different
folder than the default one defined in gerrit.basePath. In Linux, for
example, if the repository was hosted in a folder located in a
different mount point, an AtomicMoveNotSupportedException was produced.

Fortunately, the repository manager always knows what is the location of
a repository; use this information to get the path to a repository to be
deleted.

Furthermore, removing left over deleted repositories when loading the
plugin has to take in consideration all the locations defined in
gerrit.config where repositories can be hosted.

Change-Id: Iac36e5c4db3d989e371488f3befbd3fd9a8f55ef
2 files changed
tree: d19d0910414f8b171cbe9532e3027dacb2396798
  1. .settings/
  2. lib/
  3. src/
  4. .buckconfig
  5. .gitignore
  6. BUCK