Fixed Issue 112, creating Mercurial also gives Subversion repos.

dev
Loic d'Anterroches 2009-01-25 21:09:31 +01:00
parent 96a82ba0ae
commit dd6517c709
2 changed files with 6 additions and 1 deletions

View File

@ -63,8 +63,10 @@ class IDF_Plugin_SyncMercurial
*/ */
function processMercurialCreate($project) function processMercurialCreate($project)
{ {
if ($project->getConf()->getVal('scm') != 'mercurial') {
return false;
}
$shortname = $project->shortname; $shortname = $project->shortname;
if (false===($mercurial_path=Pluf::f('idf_plugin_syncmercurial_path',false))) { if (false===($mercurial_path=Pluf::f('idf_plugin_syncmercurial_path',false))) {
throw new Pluf_Exception_SettingError("'idf_plugin_syncmercurial_path' must be defined in your configuration file."); throw new Pluf_Exception_SettingError("'idf_plugin_syncmercurial_path' must be defined in your configuration file.");
} }

View File

@ -64,6 +64,9 @@ class IDF_Plugin_SyncSvn
*/ */
function processSvnCreate($project) function processSvnCreate($project)
{ {
if ($params['project']->getConf()->getVal('scm') != 'svn') {
return false;
}
$shortname = $project->shortname; $shortname = $project->shortname;
if (false===($svn_path=Pluf::f('idf_plugin_syncsvn_svn_path',false))) { if (false===($svn_path=Pluf::f('idf_plugin_syncsvn_svn_path',false))) {
throw new Pluf_Exception_SettingError("'idf_plugin_syncsvn_svn_path' must be defined in your configuration file."); throw new Pluf_Exception_SettingError("'idf_plugin_syncsvn_svn_path' must be defined in your configuration file.");