Indefero

Indefero Commit Details


Date:2009-10-09 01:46:14 (15 years 2 months ago)
Author:Loic d'Anterroches
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:c7aa91fc2912b7705adde3d13221db8373a2f303
Parents: e5934e0a3a43fe2aacda39740117f0606ea82235
Message:Fixed issue 304, cannot display source files with brackets in their names.

Changes:

File differences

src/IDF/Scm/Svn.php
169169
170170
171171
172
172
173173
174174
175175
......
196196
197197
198198
199
199
200200
201201
202202
......
253253
254254
255255
256
256
257257
258258
259259
......
280280
281281
282282
283
283
284284
285285
286286
......
458458
459459
460460
461
461
462462
463463
464464
......
494494
495495
496496
497
497
498498
499499
500500
......
525525
526526
527527
528
529
530
531
532
533
528534
529535
$cmd = sprintf(Pluf::f('svn_path', 'svn').' info --xml --username=%s --password=%s %s@%s',
escapeshellarg($this->username),
escapeshellarg($this->password),
escapeshellarg($this->repo.'/'.urlencode($path)),
escapeshellarg($this->repo.'/'.self::urlencode($path)),
escapeshellarg($rev));
$cmd = Pluf::f('idf_exec_cmd_prefix', '').$cmd;
$xmlInfo = shell_exec($cmd);
$cmd = sprintf(Pluf::f('svn_path', 'svn').' ls --xml --username=%s --password=%s %s@%s',
escapeshellarg($this->username),
escapeshellarg($this->password),
escapeshellarg($this->repo.'/'.urlencode($folder)),
escapeshellarg($this->repo.'/'.self::urlencode($folder)),
escapeshellarg($commit));
$cmd = Pluf::f('idf_exec_cmd_prefix', '').$cmd;
$xml = simplexml_load_string(shell_exec($cmd));
$cmd = sprintf(Pluf::f('svn_path', 'svn').' info --xml --username=%s --password=%s %s@%s',
escapeshellarg($this->username),
escapeshellarg($this->password),
escapeshellarg($this->repo.'/'.urlencode($filename)),
escapeshellarg($this->repo.'/'.self::urlencode($filename)),
escapeshellarg($rev));
$cmd = Pluf::f('idf_exec_cmd_prefix', '').$cmd;
$xml = simplexml_load_string(shell_exec($cmd));
$cmd = sprintf(Pluf::f('svn_path', 'svn').' cat --username=%s --password=%s %s@%s',
escapeshellarg($this->username),
escapeshellarg($this->password),
escapeshellarg($this->repo.'/'.urlencode($def->fullpath)),
escapeshellarg($this->repo.'/'.self::urlencode($def->fullpath)),
escapeshellarg($def->rev));
$cmd = Pluf::f('idf_exec_cmd_prefix', '').$cmd;
return ($cmd_only) ? $cmd : shell_exec($cmd);
$cmd = sprintf(Pluf::f('svn_path', 'svn').' proplist --xml --username=%s --password=%s %s@%s',
escapeshellarg($this->username),
escapeshellarg($this->password),
escapeshellarg($this->repo.'/'.urlencode($path)),
escapeshellarg($this->repo.'/'.self::urlencode($path)),
escapeshellarg($rev));
$cmd = Pluf::f('idf_exec_cmd_prefix', '').$cmd;
$xmlProps = shell_exec($cmd);
escapeshellarg($property),
escapeshellarg($this->username),
escapeshellarg($this->password),
escapeshellarg($this->repo.'/'.urlencode($path)),
escapeshellarg($this->repo.'/'.self::urlencode($path)),
escapeshellarg($rev));
$cmd = Pluf::f('idf_exec_cmd_prefix', '').$cmd;
$xmlProp = shell_exec($cmd);
$xml = simplexml_load_string($xmlInfo);
return (string) $xml->entry->commit['revision'];
}
public static function urlencode($string)
{
return str_replace('%2F', '/', urlencode($string));
}
}

Archive Download the corresponding diff file

Page rendered in 0.06996s using 14 queries.