Indefero

Indefero Commit Details


Date:2009-01-17 03:03:10 (15 years 11 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:7e7b5a440937b69c3bea7ca1146cda12bdef8ec4
Parents: 419601bb92ac5683ded7b07ac67312854e9cfb74
Message:Fixed issue in the display of filename with spaces with Mercurial.

The Mercurial backend was not displaying correctly the filenames/folders
having spaces in them. It was troncating at the space.
Changes:

File differences

src/IDF/Scm/Mercurial.php
149149
150150
151151
152
153152
154
153
155154
156155
157156
158
157
159158
160159
161160
......
206205
207206
208207
209
210208
211
209
212210
213211
214212
215
213
216214
217215
218216
list($hash, $perm, $exec, $file) = preg_split('/ |\t/', $line, 4);
$file = trim($file);
$dir = explode('/', $file, -1);
preg_match_all('|([a-zA-Z0-9_-]+)/|', $file, $dir);
$tmp = '';
for ($i=0; $i < count($dir[1]); $i++) {
for ($i=0; $i < count($dir); $i++) {
if ($i > 0) {
$tmp .= '/';
}
$tmp .= $dir[1][$i];
$tmp .= $dir[$i];
if (!in_array("empty\t000\t\t$tmp/", $out_hack))
$out_hack[] = "empty\t000\t\t$tmp/";
}
list($hash, $perm, $exec, $file) = preg_split('/ |\t/', $line, 4);
$file = trim($file);
$dir = explode('/', $file, -1);
preg_match_all('|([a-zA-Z0-9_-]+)/|', $file, $dir);
$tmp = '';
for ($i=0; $i < count($dir[1]); $i++) {
for ($i=0; $i < count($dir); $i++) {
if ($i > 0) {
$tmp .= '/';
}
$tmp .= $dir[1][$i];
$tmp .= $dir[$i];
if (!in_array("empty\t000\t\t$tmp/", $out_hack)) {
$out_hack[] = "emtpy\t000\t\t$tmp/";
}

Archive Download the corresponding diff file

Page rendered in 0.07741s using 13 queries.