Merge "Add projectSharded URL selection per remote" into stable-3.11
diff --git a/src/main/java/com/googlesource/gerrit/plugins/replication/StartCommand.java b/src/main/java/com/googlesource/gerrit/plugins/replication/StartCommand.java
index 74d46e1..92c619c 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/replication/StartCommand.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/replication/StartCommand.java
@@ -42,8 +42,12 @@
@Option(name = "--url", metaVar = "SUBSTRING", usage = "substring URL must match (or * to match everything)")
private String urlMatch;
+ private final Set<String> remotesToConsider = new HashSet<>();
+
@Option(name = "--remote", metaVar = "REMOTE", usage = "name of remote to replicate to")
- private Set<String> remotesToConsider = new HashSet<>();
+ void addRemote(String remote) {
+ remotesToConsider.add(remote);
+ }
@Option(name = "--wait", usage = "wait for replication to finish before exiting")
private boolean wait;