com karma: Omit already existing revisions: lib/Git/PostReceiveHook.php

From: 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-68127@lists.php.net to get a copy of this message
Commit: 581922de1992198175a75458fbea2c9066d7dea0 Author: David Soria Parra <dsp@php.net> Wed, 21 Mar 2012 19:48:30 +0100 Parents: 1f3087ca7e2bcdad1695b789797ff43079cee36f Branches: dsp/playground Link: http://git.php.net/?p=karma.git;a=commitdiff;h=581922de1992198175a75458fbea2c9066d7dea0 Log: Omit already existing revisions Changed paths: M lib/Git/PostReceiveHook.php Diff: 581922de1992198175a75458fbea2c9066d7dea0 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); + } } }

« previous php.cvs (#68127) next »