Name url distribution by the reason it is asked

`Instance.select` answered for every caller: pushing refs, creating a
project, updating its HEAD and deleting it all asked the same question,
so a reader had to follow the call sites to see which policy applied,
and a strategy could not treat one of them differently. Replace it with
`urlsToReplicateTo`, `urlsToCreateOn` and `urlsToDeleteFrom`, the
reasons the plugin asks for, and let creating and deleting default to
the URLs a project is replicated to, which is where it was written. A
HEAD update replicates a ref like any other, so it keeps following
`urlsToReplicateTo`.

No strategy answers them differently yet, so behaviour is unchanged:
`all` keeps creating on and deleting from every URL, `roundRobin` one
URL at a time and `projectSharded` the URL owning the project. Whether
those are the right policies can now be decided per reason, and in this
class rather than in its callers.

Change-Id: Ib793439e85e3b7c5c40432965b8aa2c22b5cb42e
5 files changed
tree: 79ad6bdba8acd1e6f44b4c9d770da63fb094ebb3
  1. .settings/
  2. src/
  3. .gitignore
  4. .mailmap
  5. BUILD
  6. LICENSE