Indefero

Indefero Commit Details


Date:2008-11-25 14:18:12 (16 years 26 days ago)
Author:Loic d'Anterroches
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:c02c52b14ae951d837500d603e8b764ce64ad76e
Parents: 7a0a0b523b771645be09ff262ddb163646a0dbf5
Message:Fixed some call-time pass-by-reference warnings with PHP 5.2.6.

Changes:

File differences

src/IDF/Scm/Git.php
7171
7272
7373
74
74
7575
7676
7777
......
114114
115115
116116
117
117
118118
119119
120120
......
123123
124124
125125
126
126
127127
128128
129129
......
158158
159159
160160
161
161
162162
163163
164164
......
183183
184184
185185
186
186
187187
188188
189189
......
218218
219219
220220
221
221
222222
223223
224224
......
239239
240240
241241
242
242
243243
244244
245245
......
274274
275275
276276
277
277
278278
279279
280280
escapeshellarg($this->repo),
escapeshellarg($hash));
$ret = 0; $out = array();
IDF_Scm::exec($cmd, &$out, &$ret);
IDF_Scm::exec($cmd, $out, $ret);
if ($ret != 0) return false;
return trim($out[0]);
}
$rawlog = array();
$cmd = sprintf('GIT_DIR=%s git log --raw --abbrev=40 --pretty=oneline %s',
escapeshellarg($this->repo), escapeshellarg($commit));
IDF_Scm::exec($cmd, &$rawlog);
IDF_Scm::exec($cmd, $rawlog);
// We reverse the log to be able to use a fixed efficient
// regex without back tracking.
$rawlog = implode("\n", array_reverse($rawlog));
// information as possible.
$matches = array();
if ($file->type == 'blob' and preg_match('/^\:\d{6} \d{6} [0-9a-f]{40} '.$file->hash.' .*^([0-9a-f]{40})/msU',
$rawlog, &$matches)) {
$rawlog, $matches)) {
$fc = $this->getCommit($matches[1]);
$file->date = $fc->date;
$file->log = $fc->title;
escapeshellarg($tree));
$out = array();
$res = array();
IDF_Scm::exec($cmd, &$out);
IDF_Scm::exec($cmd, $out);
foreach ($out as $line) {
list($perm, $type, $hash, $size, $file) = preg_split('/ |\t/', $line, 5, PREG_SPLIT_NO_EMPTY);
$res[] = (object) array('perm' => $perm, 'type' => $type,
escapeshellarg($this->repo),
escapeshellarg($commit));
$out = array();
IDF_Scm::exec($cmd, &$out);
IDF_Scm::exec($cmd, $out);
foreach ($out as $line) {
list($perm, $type, $hash, $size, $file) = preg_split('/ |\t/', $line, 5, PREG_SPLIT_NO_EMPTY);
if ($totest == $file) {
{
$out = array();
IDF_Scm::exec(sprintf('GIT_DIR=%s git branch',
escapeshellarg($this->repo)), &$out);
escapeshellarg($this->repo)), $out);
$res = array();
foreach ($out as $b) {
$res[] = substr($b, 2);
"'".$this->mediumtree_fmt."'",
escapeshellarg($commit));
$out = array();
IDF_Scm::exec($cmd, &$out);
IDF_Scm::exec($cmd, $out);
$log = array();
$change = array();
$inchange = false;
escapeshellarg($this->repo), $n, $this->mediumtree_fmt,
escapeshellarg($commit));
$out = array();
IDF_Scm::exec($cmd, &$out);
IDF_Scm::exec($cmd, $out);
return self::parseLog($out, 4);
}
src/IDF/Scm/Mercurial.php
7171
7272
7373
74
74
7575
7676
7777
......
124124
125125
126126
127
127
128128
129129
130130
......
181181
182182
183183
184
184
185185
186186
187187
......
246246
247247
248248
249
249
250250
251251
252252
......
266266
267267
268268
269
269
270270
271271
272272
......
297297
298298
299299
300
300
301301
302302
303303
escapeshellarg($hash));
$ret = 0;
$out = array();
IDF_Scm::exec($cmd, &$out, &$ret);
IDF_Scm::exec($cmd, $out, $ret);
return ($ret != 0) ? false : 'commit';
}
$cmd = sprintf($cmd_tmpl, escapeshellarg($this->repo), $tree, ($recurse) ? '' : '');
$out = array();
$res = array();
IDF_Scm::exec($cmd, &$out);
IDF_Scm::exec($cmd, $out);
$out_hack = array();
foreach ($out as $line) {
list($hash, $perm, $exec, $file) = preg_split('/ |\t/', $line, 4);
$cmd = sprintf($cmd_tmpl, escapeshellarg($this->repo), $commit);
$out = array();
$res = array();
IDF_Scm::exec($cmd, &$out);
IDF_Scm::exec($cmd, $out);
$out_hack = array();
foreach ($out as $line) {
list($hash, $perm, $exec, $file) = preg_split('/ |\t/', $line, 4);
{
$out = array();
IDF_Scm::exec(sprintf('hg branches -R %s',
escapeshellarg($this->repo)), &$out);
escapeshellarg($this->repo)), $out);
$res = array();
foreach ($out as $b) {
preg_match('/(\S+).*\S+:(\S+)/', $b, $match);
$cmd = sprintf('hg log -p -r %s -R %s', escapeshellarg($commit), escapeshellarg($this->repo));
$out = array();
IDF_Scm::exec($cmd, &$out);
IDF_Scm::exec($cmd, $out);
$log = array();
$change = array();
$inchange = false;
{
$cmd = sprintf('hg log -R %s -l%s ', escapeshellarg($this->repo), $n, $commit);
$out = array();
IDF_Scm::exec($cmd, &$out);
IDF_Scm::exec($cmd, $out);
return self::parseLog($out, 6);
}

Archive Download the corresponding diff file

Page rendered in 0.08524s using 13 queries.