diff options
author | Edwin Kempin <edwin.kempin@gmail.com> | 2013-10-16 08:18:49 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2013-10-16 08:18:50 +0000 |
commit | 68ab44794695bf5f7faec3bcae27bce42052a68b (patch) | |
tree | c7b4f39e4f97958b0a8efb25b8cfa0ed78e06c2b | |
parent | 87d7a646419badac537f83ca8b8c1858e06d9b25 (diff) | |
parent | 86d8e39a252051de7418960f9076137cb8ef865f (diff) |
Merge "Adapt to the simplified GitReferenceUpdatedListener.Event API"v2.8-rc0
-rw-r--r-- | src/main/java/com/googlesource/gerrit/plugins/replication/ReplicationQueue.java | 10 |
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); } } } |