summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEdwin Kempin <edwin.kempin@gmail.com>2013-10-16 08:18:49 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2013-10-16 08:18:50 +0000
commit68ab44794695bf5f7faec3bcae27bce42052a68b (patch)
treec7b4f39e4f97958b0a8efb25b8cfa0ed78e06c2b
parent87d7a646419badac537f83ca8b8c1858e06d9b25 (diff)
parent86d8e39a252051de7418960f9076137cb8ef865f (diff)
Merge "Adapt to the simplified GitReferenceUpdatedListener.Event API"v2.8-rc0
-rw-r--r--src/main/java/com/googlesource/gerrit/plugins/replication/ReplicationQueue.java10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/main/java/com/googlesource/gerrit/plugins/replication/ReplicationQueue.java b/src/main/java/com/googlesource/gerrit/plugins/replication/ReplicationQueue.java
index 83f7847..5b6c1e2 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/replication/ReplicationQueue.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/replication/ReplicationQueue.java
@@ -156,12 +156,10 @@ class ReplicationQueue implements
}
Project.NameKey project = new Project.NameKey(event.getProjectName());
- for (GitReferenceUpdatedListener.Update u : event.getUpdates()) {
- for (Destination cfg : configs) {
- if (cfg.wouldPushProject(project) && cfg.wouldPushRef(u.getRefName())) {
- for (URIish uri : cfg.getURIs(project, null)) {
- cfg.schedule(project, u.getRefName(), uri, state);
- }
+ for (Destination cfg : configs) {
+ if (cfg.wouldPushProject(project) && cfg.wouldPushRef(event.getRefName())) {
+ for (URIish uri : cfg.getURIs(project, null)) {
+ cfg.schedule(project, event.getRefName(), uri, state);
}
}
}