Indefero

Indefero Commit Details


Date:2009-09-21 02:58:29 (15 years 3 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:25d7a5a776481e1393b0bc51dfd9a28ceb0c7f42
Parents: 9d9541ee111358c9c1aa73b32a68515f32d21767
Message:Fixed issue 286, repository size fails on symlinks.

Changes:

File differences

src/IDF/Scm/Git.php
4343
4444
4545
46
46
4747
4848
4949
public function getRepositorySize()
{
$cmd = Pluf::f('idf_exec_cmd_prefix', '').'du -sk '
$cmd = Pluf::f('idf_exec_cmd_prefix', '').'du -skD '
.escapeshellarg($this->repo);
$out = split(' ', shell_exec($cmd), 2);
return (int) $out[0]*1024;
src/IDF/Scm/Mercurial.php
3535
3636
3737
38
38
3939
4040
4141
public function getRepositorySize()
{
$cmd = Pluf::f('idf_exec_cmd_prefix', '').'du -sk '
$cmd = Pluf::f('idf_exec_cmd_prefix', '').'du -skD '
.escapeshellarg($this->repo);
$out = split(' ', shell_exec($cmd), 2);
return (int) $out[0]*1024;
src/IDF/Scm/Svn.php
5656
5757
5858
59
59
6060
6161
6262
if (strpos($this->repo, 'file://') !== 0) {
return -1;
}
$cmd = Pluf::f('idf_exec_cmd_prefix', '').'du -sk '
$cmd = Pluf::f('idf_exec_cmd_prefix', '').'du -skD '
.escapeshellarg(substr($this->repo, 7));
$out = split(' ', shell_exec($cmd), 2);
return (int) $out[0]*1024;

Archive Download the corresponding diff file

Page rendered in 0.07846s using 14 queries.