Several f'ups in hg's parseLog() method
This commit is contained in:
parent
30efd0a2db
commit
592c2ff9ff
@ -531,6 +531,7 @@ class IDF_Scm_Mercurial extends IDF_Scm
|
|||||||
if ($line == "\0") {
|
if ($line == "\0") {
|
||||||
$headers_processed = false;
|
$headers_processed = false;
|
||||||
if (count($c) > 0) {
|
if (count($c) > 0) {
|
||||||
|
if (array_key_exists('full_message', $c))
|
||||||
$c['full_message'] = trim($c['full_message']);
|
$c['full_message'] = trim($c['full_message']);
|
||||||
$res[] = (object) $c;
|
$res[] = (object) $c;
|
||||||
}
|
}
|
||||||
@ -547,10 +548,8 @@ class IDF_Scm_Mercurial extends IDF_Scm
|
|||||||
$c['commit'] = $match[2];
|
$c['commit'] = $match[2];
|
||||||
$c['tree'] = $c['commit'];
|
$c['tree'] = $c['commit'];
|
||||||
$c['full_message'] = '';
|
$c['full_message'] = '';
|
||||||
} elseif ($match[1] == 'user') {
|
} elseif ($match[1] == 'author') {
|
||||||
$c['author'] = $match[2];
|
$c['author'] = $match[2];
|
||||||
} elseif ($match[1] == 'summary') {
|
|
||||||
$c['title'] = $match[2];
|
|
||||||
} elseif ($match[1] == 'branch') {
|
} elseif ($match[1] == 'branch') {
|
||||||
$c['branch'] = empty($match[2]) ? 'default' : $match[2];
|
$c['branch'] = empty($match[2]) ? 'default' : $match[2];
|
||||||
} elseif ($match[1] == 'parents') {
|
} elseif ($match[1] == 'parents') {
|
||||||
|
Loading…
Reference in New Issue
Block a user