Fixed Issue 112, creating Mercurial also gives Subversion repos.
This commit is contained in:
parent
96a82ba0ae
commit
dd6517c709
@ -63,8 +63,10 @@ class IDF_Plugin_SyncMercurial
|
||||
*/
|
||||
function processMercurialCreate($project)
|
||||
{
|
||||
if ($project->getConf()->getVal('scm') != 'mercurial') {
|
||||
return false;
|
||||
}
|
||||
$shortname = $project->shortname;
|
||||
|
||||
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.");
|
||||
}
|
||||
|
@ -64,6 +64,9 @@ class IDF_Plugin_SyncSvn
|
||||
*/
|
||||
function processSvnCreate($project)
|
||||
{
|
||||
if ($params['project']->getConf()->getVal('scm') != 'svn') {
|
||||
return false;
|
||||
}
|
||||
$shortname = $project->shortname;
|
||||
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.");
|
||||
|
Loading…
Reference in New Issue
Block a user