Indefero

Indefero Commit Details


Date:2008-12-30 11:21:04 (15 years 11 months ago)
Author:Julien Issler
Branch:dev, 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:c33b2715198c92212865503763004f44accd13c4
Parents: 2078d69a838a7cb52ae984d42df75920358cfce7
Message:Fixed issue 96, errors when parsing a Mercurial diff.

Changes:

File differences

src/IDF/Diff.php
5555
5656
5757
58
59
58
59
60
61
62
63
64
65
6066
6167
6268
......
327333
328334
329335
330
336
$files[$current_file]['chunks_def'] = array();
$current_chunk = 0;
continue;
}
if (0 === strpos($line, 'Index: ')) {
} else if (preg_match('#^diff -r [^\s]+ -r [^\s]+ (.+)$#', $line, $matches)) {
$current_file = $matches[1];
$files[$current_file] = array();
$files[$current_file]['chunks'] = array();
$files[$current_file]['chunks_def'] = array();
$current_chunk = 0;
continue;
} else if (0 === strpos($line, 'Index: ')) {
$current_file = self::getSvnFile($line);
$files[$current_file] = array();
$files[$current_file]['chunks'] = array();
return Pluf_Template::markSafe($out);
}
}
}

Archive Download the corresponding diff file

Page rendered in 0.07143s using 14 queries.