Indefero

Indefero Commit Details


Date:2009-10-01 07:56:54 (15 years 2 months ago)
Author:David Feeney
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:4765ca223257f4eb0c0b1ba7a434d6b8fc7272a8
Parents: 6edaf03faa6ee839810c991948db6fa0789f2db0
Message:Fixed issue 282, Mercurial support in new projects.

Changes:

File differences

src/IDF/Scm/Mercurial.php
4949
5050
5151
52
52
53
54
55
56
57
5358
5459
5560
......
8691
8792
8893
89
94
9095
9196
9297
......
287292
288293
289294
290
295
291296
297
298
299
292300
293301
294302
......
393401
394402
395403
396
397
404
405
398406
399407
400408
public function isAvailable()
{
return true;
try {
$branches = $this->getBranches();
} catch (IDF_Scm_Exception $e) {
return false;
}
return (count($branches) > 0);
}
public function findAuthor($author)
escapeshellarg($rev));
$cmd = Pluf::f('idf_exec_cmd_prefix', '').$cmd;
exec($cmd, $out, $ret);
return ($ret == 0);
return ($ret == 0) && (count($out) > 0);
}
/**
* @param bool Get commit diff (false)
* @return array Changes
*/
public function getCommit($commit='tip', $getdiff=false)
public function getCommit($commit, $getdiff=false)
{
if (!$this->isValidRevision($commit)) {
return false;
}
$tmpl = ($getdiff) ?
Pluf::f('hg_path', 'hg').' log -p -r %s -R %s' : Pluf::f('hg_path', 'hg').' log -r %s -R %s';
$cmd = sprintf($tmpl,
continue;
}
}
$c['tree'] = $c['commit'];
$c['full_message'] = trim($c['full_message']);
$c['tree'] = !empty($c['commit']) ? trim($c['commit']) : '';
$c['full_message'] = !empty($c['full_message']) ? trim($c['full_message']) : '';
$res[] = (object) $c;
return $res;
}

Archive Download the corresponding diff file

Page rendered in 0.07357s using 14 queries.