Permalink
Browse files

MDL-42456: add Mercurial vcs support to plugin_external_source

  • Loading branch information...
1 parent 93289de commit c5a229c2f1d5d5f4c9ff0dd259f59ca8c420db39 @oasychev oasychev committed with Sam Hemelryk Jan 24, 2014
Showing with 8 additions and 0 deletions.
  1. +4 −0 lib/classes/plugin_manager.php
  2. +4 −0 lib/classes/update/deployer.php
@@ -661,6 +661,10 @@ public function plugin_external_source($component) {
return 'svn';
}
+ if (is_dir($pluginroot.'/.hg')) {
+ return 'mercurial';
+ }
+
return false;
}
@@ -189,6 +189,10 @@ public function plugin_external_source(info $info) {
return 'svn';
}
+ if (is_dir($pluginroot.'/.hg')) {
+ return 'mercurial';
+ }
+
return false;
}

0 comments on commit c5a229c

Please sign in to comment.