From 0b5157363f5a3bd4aa2bbe2889e14cbc56e89621 Mon Sep 17 00:00:00 2001 From: Oleg Sychev Date: Sat, 25 Jan 2014 02:41:01 +0300 Subject: [PATCH] MDL-42456: add Mercurial vcs support to plugin_external_source --- lib/classes/plugin_manager.php | 4 ++++ lib/classes/update/deployer.php | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/lib/classes/plugin_manager.php b/lib/classes/plugin_manager.php index f0d7455e592..7ae4380e5ff 100644 --- a/lib/classes/plugin_manager.php +++ b/lib/classes/plugin_manager.php @@ -662,6 +662,10 @@ class core_plugin_manager { return 'svn'; } + if (is_dir($pluginroot.'/.hg')) { + return 'mercurial'; + } + return false; } diff --git a/lib/classes/update/deployer.php b/lib/classes/update/deployer.php index 0eccb8e9e7d..d25560920e4 100644 --- a/lib/classes/update/deployer.php +++ b/lib/classes/update/deployer.php @@ -189,6 +189,10 @@ class deployer { return 'svn'; } + if (is_dir($pluginroot.'/.hg')) { + return 'mercurial'; + } + return false; }