Indefero

Indefero Commit Details


Date:2009-06-09 11:03:40 (15 years 6 months ago)
Author:Loic d'Anterroches
Branch:develop, feature-issue_links, feature.better-home, feature.content-md5, feature.diff-whitespace, feature.download-md5, feature.issue-links, feature.issue-of-others, feature.issue-summary, feature.search-filter, feature.webrepos, feature.wiki-default-page, master, release-1.1, release-1.2, release-1.3
Commit:fb66e1e98f8870adf85bc36b087da4fa6de1945d
Parents: 2f0156e63b2fe0a16bd765b9d867cd22e2bb499e
Message:Fixed to correctly parse the full message of an svn commit log.

Changes:

File differences

src/IDF/Commit.php
144144
145145
146146
147
148
149
147150
148151
149152
if ($r->count() > 0) {
return $r[0];
}
if (!isset($change->full_message)) {
$change->full_message = '';
}
$scm = IDF_Scm::get($project);
$commit = new IDF_Commit();
$commit->project = $project;
src/IDF/Scm/Svn.php
407407
408408
409409
410
410
411
411412
412
413
413
414414
415415
416416
$log = array();
$log['author'] = (string) $entry->author;
$log['date'] = gmdate('Y-m-d H:i:s', strtotime((string) $entry->date));
$log['title'] = (string) $entry->msg;
$split = split("[\n\r]", (string) $entry->msg, 2);
$log['title'] = $split[0];
$log['commit'] = (string) $entry['revision'];
$log['full_message'] = '';
$log['full_message'] = (isset($split[1])) ? trim($split[1]) : '';
$res[] = (object) $log;
}
return $res;

Archive Download the corresponding diff file

Page rendered in 0.08090s using 13 queries.