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:
parent
10ca61a13b
commit
0ffe328c0a
|
@ -107,6 +107,15 @@ default:
|
||||||
autologin_cookie_path:
|
autologin_cookie_path:
|
||||||
autologin_cookie_secure:
|
autologin_cookie_secure:
|
||||||
|
|
||||||
|
# Configuration of SCM executable command.
|
||||||
|
# Absolute path (ex. /usr/local/bin/hg) or command name (ex. hg.exe, bzr.exe)
|
||||||
|
# On Windows, *.cmd, *.bat (ex. hg.cmd, bzr.bat) does not work.
|
||||||
|
scm_command_subversion: svn # (default: svn)
|
||||||
|
scm_command_mercurial: "\"C:\Program Files\TortoiseHg\hg.exe\"" # (default: hg)
|
||||||
|
scm_command_git: /usr/local/bin/git # (default: git)
|
||||||
|
scm_command_bazaar: bzr.exe # (default: bzr)
|
||||||
|
scm_command_darcs: darcs-1.0.9-i386-linux # (default: darcs)
|
||||||
|
|
||||||
# specific configuration options for production environment
|
# specific configuration options for production environment
|
||||||
# that overrides the default ones
|
# that overrides the default ones
|
||||||
production:
|
production:
|
||||||
|
|
|
@ -23,7 +23,7 @@ module Redmine
|
||||||
class BazaarAdapter < AbstractAdapter
|
class BazaarAdapter < AbstractAdapter
|
||||||
|
|
||||||
# Bazaar executable name
|
# Bazaar executable name
|
||||||
BZR_BIN = "bzr"
|
BZR_BIN = Redmine::Configuration['scm_command_bazaar'] || "bzr"
|
||||||
|
|
||||||
# Get info about the repository
|
# Get info about the repository
|
||||||
def info
|
def info
|
||||||
|
|
|
@ -23,7 +23,7 @@ module Redmine
|
||||||
class CvsAdapter < AbstractAdapter
|
class CvsAdapter < AbstractAdapter
|
||||||
|
|
||||||
# CVS executable name
|
# CVS executable name
|
||||||
CVS_BIN = "cvs"
|
CVS_BIN = Redmine::Configuration['scm_command_cvs'] || "cvs"
|
||||||
|
|
||||||
# Guidelines for the input:
|
# Guidelines for the input:
|
||||||
# url -> the project-path, relative to the cvsroot (eg. module name)
|
# url -> the project-path, relative to the cvsroot (eg. module name)
|
||||||
|
|
|
@ -23,7 +23,7 @@ module Redmine
|
||||||
module Adapters
|
module Adapters
|
||||||
class DarcsAdapter < AbstractAdapter
|
class DarcsAdapter < AbstractAdapter
|
||||||
# Darcs executable name
|
# Darcs executable name
|
||||||
DARCS_BIN = "darcs"
|
DARCS_BIN = Redmine::Configuration['scm_command_darcs'] || "darcs"
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
def client_version
|
def client_version
|
||||||
|
|
|
@ -22,7 +22,7 @@ module Redmine
|
||||||
module Adapters
|
module Adapters
|
||||||
class GitAdapter < AbstractAdapter
|
class GitAdapter < AbstractAdapter
|
||||||
# Git executable name
|
# Git executable name
|
||||||
GIT_BIN = "git"
|
GIT_BIN = Redmine::Configuration['scm_command_git'] || "git"
|
||||||
|
|
||||||
def info
|
def info
|
||||||
begin
|
begin
|
||||||
|
|
|
@ -24,7 +24,7 @@ module Redmine
|
||||||
class MercurialAdapter < AbstractAdapter
|
class MercurialAdapter < AbstractAdapter
|
||||||
|
|
||||||
# Mercurial executable name
|
# Mercurial executable name
|
||||||
HG_BIN = "hg"
|
HG_BIN = Redmine::Configuration['scm_command_mercurial'] || "hg"
|
||||||
TEMPLATES_DIR = File.dirname(__FILE__) + "/mercurial"
|
TEMPLATES_DIR = File.dirname(__FILE__) + "/mercurial"
|
||||||
TEMPLATE_NAME = "hg-template"
|
TEMPLATE_NAME = "hg-template"
|
||||||
TEMPLATE_EXTENSION = "tmpl"
|
TEMPLATE_EXTENSION = "tmpl"
|
||||||
|
|
|
@ -24,7 +24,7 @@ module Redmine
|
||||||
class SubversionAdapter < AbstractAdapter
|
class SubversionAdapter < AbstractAdapter
|
||||||
|
|
||||||
# SVN executable name
|
# SVN executable name
|
||||||
SVN_BIN = "svn"
|
SVN_BIN = Redmine::Configuration['scm_command_subversion'] || "svn"
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
def client_version
|
def client_version
|
||||||
|
|
Loading…
Reference in New Issue