[git] karma.git branch PHP_POST_RECEIVE updated. f2e7330

From: Date: Fri, 16 Mar 2012 07:18:28 +0000
Subject: [git] karma.git branch PHP_POST_RECEIVE updated. f2e7330
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-67923@lists.php.net to get a copy of this message
The branch PHP_POST_RECEIVE on karma.git has been updated via f2e733020f4a75f4a91b88ea73c0c8c77f455d5c (commit) from 3cb77b79f3dc1a5a77cb3c4348b7a14b3e29aca2 (commit) http://git.php.net/?p=karma.git;a=log;h=f2e733020f4a75f4a91b88ea73c0c8c77f455d5c;hp=3cb77b79f3dc1a5a77cb3c4348b7a14b3e29aca2 Summary of changes: lib/Git/PostReceiveHook.php | 13 ++----------- 1 files changed, 2 insertions(+), 11 deletions(-) -- Log ---------------------------------------- commit f2e733020f4a75f4a91b88ea73c0c8c77f455d5c Author: Alexander Moskaliov <irker@php.net> Date: Fri Mar 16 11:02:16 2012 +0400 remove time sorting for mail commit But we must think about normal sort commits per branch diff --git a/lib/Git/PostReceiveHook.php b/lib/Git/PostReceiveHook.php index 86992ca..bc4c935 100644 --- a/lib/Git/PostReceiveHook.php +++ b/lib/Git/PostReceiveHook.php @@ -87,14 +87,6 @@ class PostReceiveHook extends ReceiveHook } } - // sort revisions by commit time - uksort($this->revisions, function($a, $b){ - if ($a['time'] == $b['time']) { - return 0; - } - return ($a['time'] < $b['time']) ? -1 : 1; - }); - //send mails per commit foreach ($this->revisions as $revision => $branches) { // check if it commit was already in other branches @@ -160,6 +152,7 @@ class PostReceiveHook extends ReceiveHook $logString .= 'Committer: ' . $commitInfo['committer'] . '(' . $commitInfo['committer_email'] . ') ' . $commitInfo['committer_date'] . "\n"; $logString .= "Link: http://git.php.net/?p=" . $this->getRepositoryName() . ";a=commitdiff;h=" . $revision . "\n"; $logString .= "Shortlog: " . $commitInfo['subject'] . "\n"; + $logString .= "\n"; } } @@ -415,7 +408,6 @@ class PostReceiveHook extends ReceiveHook * 'committer', 'committer_email', 'committer_date' - info about committer person * 'subject' - commit subject line * 'log' - full commit message - * 'time' - 'committer_date' in timestamp * * Also cache revision info * @param $revision revision @@ -435,8 +427,7 @@ class PostReceiveHook extends ReceiveHook 'committer_email' => $raw[6], // %ce 'committer_date' => $raw[7], // %cD 'subject' => $raw[8], // %s - 'log' => $raw[9], // %B - 'time' => strtotime($raw[7]) + 'log' => $raw[9] ]; } return $this->commitsData[$revision]; Thank you for your contribution.

« previous php.cvs (#67923) next »