Indefero

Indefero Commit Details


Date:2010-02-24 08:06:13 (14 years 9 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:64fb5b3bf0b56f0ba23ecda28c84434dee2e3be9
Parents: 51842c02f65bca9c8988fa449296a7b3e1638508
Message:Fixed issue 402, Project List shows '0 bytes' Repository size on Mac OS X.

Changes:

File differences

src/IDF/Scm/Git.php
4646
4747
4848
49
49
5050
5151
5252
if (!file_exists($this->repo)) {
return 0;
}
$cmd = Pluf::f('idf_exec_cmd_prefix', '').'du -skD '
$cmd = Pluf::f('idf_exec_cmd_prefix', '').'du -sk '
.escapeshellarg($this->repo);
$out = explode(' ',
self::shell_exec('IDF_Scm_Git::getRepositorySize', $cmd),
src/IDF/Scm/Mercurial.php
3535
3636
3737
38
38
3939
4040
4141
public function getRepositorySize()
{
$cmd = Pluf::f('idf_exec_cmd_prefix', '').'du -skD '
$cmd = Pluf::f('idf_exec_cmd_prefix', '').'du -sk '
.escapeshellarg($this->repo);
$out = explode(' ',
self::shell_exec('IDF_Scm_Mercurial::getRepositorySize',
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 -skD '
$cmd = Pluf::f('idf_exec_cmd_prefix', '').'du -sk '
.escapeshellarg(substr($this->repo, 7));
$out = explode(' ', self::shell_exec('IDF_Scm_Svn::getRepositorySize', $cmd), 2);
return (int) $out[0]*1024;

Archive Download the corresponding diff file

Page rendered in 0.08006s using 14 queries.