Permalink
Browse files

MDL-42456: add Mercurial vcs support to plugin_external_source

  • Loading branch information...
1 parent 06ce535 commit 64ab5badbfbc156679c9b77bbd51eb6f07f22b68 @oasychev oasychev committed with Sam Hemelryk Jan 24, 2014
Showing with 8 additions and 0 deletions.
  1. +8 −0 lib/pluginlib.php
View
@@ -395,6 +395,10 @@ public function plugin_external_source($component) {
return 'svn';
}
+ if (is_dir($pluginroot.'/.hg')) {
+ return 'mercurial';
+ }
+
return false;
}
@@ -1985,6 +1989,10 @@ public function plugin_external_source(available_update_info $info) {
return 'svn';
}
+ if (is_dir($pluginroot.'/.hg')) {
+ return 'mercurial';
+ }
+
return false;
}

0 comments on commit 64ab5ba

Please sign in to comment.