Added the support of Mercurial.
This commit is contained in:
committed by
Loic d'Anterroches
parent
ee8d56075d
commit
08145b7b1c
@@ -353,7 +353,11 @@ class IDF_Project extends Pluf_Model
|
||||
public function getScmRoot()
|
||||
{
|
||||
$conf = $this->getConf();
|
||||
$roots = array('git' => 'master', 'svn' => 'HEAD');
|
||||
$roots = array(
|
||||
'git' => 'master',
|
||||
'svn' => 'HEAD',
|
||||
'mercurial' => 'tip'
|
||||
);
|
||||
$scm = $conf->getVal('scm', 'git');
|
||||
return $roots[$scm];
|
||||
}
|
||||
@@ -388,4 +392,4 @@ class IDF_Project extends Pluf_Model
|
||||
return $this->_pconf;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user