scm: add a feature of configurable path of executable for scm adapters (#7517).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4795 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA
2011-02-04 04:28:39 +00:00
parent 10ca61a13b
commit 0ffe328c0a
7 changed files with 15 additions and 6 deletions

View File

@@ -24,7 +24,7 @@ module Redmine
class MercurialAdapter < AbstractAdapter
# Mercurial executable name
HG_BIN = "hg"
HG_BIN = Redmine::Configuration['scm_command_mercurial'] || "hg"
TEMPLATES_DIR = File.dirname(__FILE__) + "/mercurial"
TEMPLATE_NAME = "hg-template"
TEMPLATE_EXTENSION = "tmpl"