Fixed variable used before being instanciated in the Mercurial backend.

master
Loic d'Anterroches 2009-07-23 23:33:08 +02:00
parent 021805f1e1
commit 6845f59150
1 changed files with 3 additions and 2 deletions

View File

@ -261,9 +261,10 @@ class IDF_Scm_Mercurial extends IDF_Scm
return $this->cache['branches'];
}
$out = array();
$cmd = sprintf(Pluf::f('hg_path', 'hg').' branches -R %s',
escapeshellarg($this->repo));
$cmd = Pluf::f('idf_exec_cmd_prefix', '').$cmd;
exec(sprintf(Pluf::f('hg_path', 'hg').' branches -R %s',
escapeshellarg($this->repo)), $out);
exec($cmd, $out);
$res = array();
foreach ($out as $b) {
preg_match('/(\S+).*\S+:(\S+)/', $b, $match);