##// END OF EJS Templates
scm: add a feature of configurable path of executable for scm adapters (#7517)....
Toshi MARUYAMA -
r4675:0ffe328c0ac3
parent child
Show More
@@ -107,6 +107,15 default:
107 107 autologin_cookie_path:
108 108 autologin_cookie_secure:
109 109
110 # Configuration of SCM executable command.
111 # Absolute path (ex. /usr/local/bin/hg) or command name (ex. hg.exe, bzr.exe)
112 # On Windows, *.cmd, *.bat (ex. hg.cmd, bzr.bat) does not work.
113 scm_command_subversion: svn # (default: svn)
114 scm_command_mercurial: "\"C:\Program Files\TortoiseHg\hg.exe\"" # (default: hg)
115 scm_command_git: /usr/local/bin/git # (default: git)
116 scm_command_bazaar: bzr.exe # (default: bzr)
117 scm_command_darcs: darcs-1.0.9-i386-linux # (default: darcs)
118
110 119 # specific configuration options for production environment
111 120 # that overrides the default ones
112 121 production:
@@ -23,7 +23,7 module Redmine
23 23 class BazaarAdapter < AbstractAdapter
24 24
25 25 # Bazaar executable name
26 BZR_BIN = "bzr"
26 BZR_BIN = Redmine::Configuration['scm_command_bazaar'] || "bzr"
27 27
28 28 # Get info about the repository
29 29 def info
@@ -23,7 +23,7 module Redmine
23 23 class CvsAdapter < AbstractAdapter
24 24
25 25 # CVS executable name
26 CVS_BIN = "cvs"
26 CVS_BIN = Redmine::Configuration['scm_command_cvs'] || "cvs"
27 27
28 28 # Guidelines for the input:
29 29 # url -> the project-path, relative to the cvsroot (eg. module name)
@@ -23,7 +23,7 module Redmine
23 23 module Adapters
24 24 class DarcsAdapter < AbstractAdapter
25 25 # Darcs executable name
26 DARCS_BIN = "darcs"
26 DARCS_BIN = Redmine::Configuration['scm_command_darcs'] || "darcs"
27 27
28 28 class << self
29 29 def client_version
@@ -22,7 +22,7 module Redmine
22 22 module Adapters
23 23 class GitAdapter < AbstractAdapter
24 24 # Git executable name
25 GIT_BIN = "git"
25 GIT_BIN = Redmine::Configuration['scm_command_git'] || "git"
26 26
27 27 def info
28 28 begin
@@ -24,7 +24,7 module Redmine
24 24 class MercurialAdapter < AbstractAdapter
25 25
26 26 # Mercurial executable name
27 HG_BIN = "hg"
27 HG_BIN = Redmine::Configuration['scm_command_mercurial'] || "hg"
28 28 TEMPLATES_DIR = File.dirname(__FILE__) + "/mercurial"
29 29 TEMPLATE_NAME = "hg-template"
30 30 TEMPLATE_EXTENSION = "tmpl"
@@ -24,7 +24,7 module Redmine
24 24 class SubversionAdapter < AbstractAdapter
25 25
26 26 # SVN executable name
27 SVN_BIN = "svn"
27 SVN_BIN = Redmine::Configuration['scm_command_subversion'] || "svn"
28 28
29 29 class << self
30 30 def client_version
General Comments 0
You need to be logged in to leave comments. Login now