Added the support of Mercurial.

This commit is contained in:
Benjamin Jorand
2008-11-23 17:45:00 +01:00
committed by Loic d'Anterroches
parent ee8d56075d
commit 08145b7b1c
7 changed files with 489 additions and 6 deletions

View File

@@ -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;
}
}
}