Fixed issue 314, Mercurial shows empty files in directories

This commit is contained in:
Ludovic Bellière 2010-01-20 21:27:18 +01:00 committed by Loic d'Anterroches
parent a8a292a3c5
commit 0b580ba2ec

View File

@ -250,7 +250,7 @@ class IDF_Scm_Mercurial extends IDF_Scm
$cmd = sprintf(Pluf::f('hg_path', 'hg').' cat -R %s -r %s %s',
escapeshellarg($this->repo),
escapeshellarg($def->commit),
escapeshellarg($this->repo.'/'.$def->file));
escapeshellarg($this->repo.'/'.$def->fullpath));
$cmd = Pluf::f('idf_exec_cmd_prefix', '').$cmd;
return ($cmd_only) ? $cmd : shell_exec($cmd);
}