com karma: Omit already existing revisions: lib/Git/PostReceiveHook.php
| From: | David Soria Parra | Date: | Wed, 21 Mar 2012 18:48:30 +0000 |
| Subject: | com karma: Omit already existing revisions: lib/Git/PostReceiveHook.php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-68120@lists.php.net to get a copy of this message | ||
Commit: f3cb335d3b43ec524d9c776d3f4c21fc0067c9cc
Author: David Soria Parra <dsp@php.net> Wed, 21 Mar 2012 19:48:30 +0100
Parents: eea11ffc817f2921e766850f803918439edf99ca
Branches: master
Link: http://git.php.net/?p=karma.git;a=commitdiff;h=f3cb335d3b43ec524d9c776d3f4c21fc0067c9cc
Log:
Omit already existing revisions
Changed paths:
M lib/Git/PostReceiveHook.php
Diff:
f3cb335d3b43ec524d9c776d3f4c21fc0067c9cc
diff --git a/lib/Git/PostReceiveHook.php b/lib/Git/PostReceiveHook.php
index bebe0ee..937c283 100644
--- a/lib/Git/PostReceiveHook.php
+++ b/lib/Git/PostReceiveHook.php
@@ -94,7 +94,9 @@ class PostReceiveHook extends ReceiveHook
}
foreach (array_unique($revisions) as $revision) {
- $this->sendCommitMail($revision);
+ if (!$this->isRevExistsInBranches($revision, $this->allBranches)) {
+ $this->sendCommitMail($revision);
+ }
}
}