Pushed the constructor into the backend implementation.

This commit is contained in:
Loic d'Anterroches
2009-05-27 23:08:55 +02:00
parent 44ea8f1817
commit d98dda645e
4 changed files with 16 additions and 11 deletions

View File

@@ -27,6 +27,12 @@
*/
class IDF_Scm_Mercurial extends IDF_Scm
{
public function __construct($repo, $project=null)
{
$this->repo = $repo;
$this->project = $project;
}
public static function factory($project)
{
$rep = sprintf(Pluf::f('mercurial_repositories'), $project->shortname);