Indefero

Indefero Commit Details


Date:2009-04-07 04:19:07 (15 years 8 months ago)
Author:Benjamin Jorand
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:04c2115fc20279363c08c648e741a8f3c99125ea
Parents: 08bc58848fc371417b0f6014a06d1f799514b853
Message:Improved the source browser on large Mercurial repositories.

Changes:

File differences

src/IDF/Scm/Mercurial.php
145145
146146
147147
148
148149
149150
150151
......
155156
156157
157158
158
159
159160
161
162
160163
161164
162165
......
201204
202205
203206
207
204208
205209
206210
......
211215
212216
213217
214
215
218
219
220
216221
217222
218223
219224
220
221225
222226
223227
......
233237
234238
235239
236
237240
238241
239242
$res = array();
IDF_Scm::exec($cmd, $out);
$out_hack = array();
$tmp_hack = array();
foreach ($out as $line) {
list($hash, $perm, $exec, $file) = preg_split('/ |\t/', $line, 4);
$file = trim($file);
$tmp .= '/';
}
$tmp .= $dir[$i];
if (!in_array("empty\t000\t\t$tmp/", $out_hack))
if (!isset($tmp_hack["empty\t000\t\t$tmp/"])) {
$out_hack[] = "empty\t000\t\t$tmp/";
$tmp_hack["empty\t000\t\t$tmp/"] = 1;
}
}
$out_hack[] = "$hash\t$perm\t$exec\t$file";
}
$res = array();
IDF_Scm::exec($cmd, $out);
$out_hack = array();
$tmp_hack =array();
foreach ($out as $line) {
list($hash, $perm, $exec, $file) = preg_split('/ |\t/', $line, 4);
$file = trim($file);
$tmp .= '/';
}
$tmp .= $dir[$i];
if (!in_array("empty\t000\t\t$tmp/", $out_hack)) {
$out_hack[] = "emtpy\t000\t\t$tmp/";
if (!isset($tmp_hack["empty\t000\t\t$tmp/"])) {
$out_hack[] = "empty\t000\t\t$tmp/";
$tmp_hack["empty\t000\t\t$tmp/"] = 1;
}
}
$out_hack[] = "$hash\t$perm\t$exec\t$file";
}
foreach ($out_hack as $line) {
list($hash, $perm, $exec, $file) = preg_split('/ |\t/', $line, 4);
$file = trim ($file);
'file' => $file,
'commit' => $commit
);
}
}
return false;

Archive Download the corresponding diff file

Page rendered in 0.07372s using 13 queries.