Browse Source

scm: change key name of configurable command name (#7517, #6159, #7047).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4797 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/1.2.0
Toshi MARUYAMA 13 years ago
parent
commit
3ee203ef0c

+ 5
- 5
config/configuration.yml.example View File

# Configuration of SCM executable command. # Configuration of SCM executable command.
# Absolute path (e.g. /usr/local/bin/hg) or command name (e.g. hg.exe, bzr.exe) # Absolute path (e.g. /usr/local/bin/hg) or command name (e.g. hg.exe, bzr.exe)
# On Windows, *.cmd, *.bat (e.g. hg.cmd, bzr.bat) does not work. # On Windows, *.cmd, *.bat (e.g. 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)
scm_subversion_command: svn # (default: svn)
scm_mercurial_command: "\"C:\Program Files\TortoiseHg\hg.exe\"" # (default: hg)
scm_git_command: /usr/local/bin/git # (default: git)
scm_bazaar_command: bzr.exe # (default: bzr)
scm_darcs_command: 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

+ 1
- 1
lib/redmine/scm/adapters/bazaar_adapter.rb View File

class BazaarAdapter < AbstractAdapter class BazaarAdapter < AbstractAdapter
# Bazaar executable name # Bazaar executable name
BZR_BIN = Redmine::Configuration['scm_command_bazaar'] || "bzr"
BZR_BIN = Redmine::Configuration['scm_bazaar_command'] || "bzr"
# Get info about the repository # Get info about the repository
def info def info

+ 1
- 1
lib/redmine/scm/adapters/cvs_adapter.rb View File

class CvsAdapter < AbstractAdapter class CvsAdapter < AbstractAdapter


# CVS executable name # CVS executable name
CVS_BIN = Redmine::Configuration['scm_command_cvs'] || "cvs"
CVS_BIN = Redmine::Configuration['scm_cvs_command'] || "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)

+ 1
- 1
lib/redmine/scm/adapters/darcs_adapter.rb View File

module Adapters module Adapters
class DarcsAdapter < AbstractAdapter class DarcsAdapter < AbstractAdapter
# Darcs executable name # Darcs executable name
DARCS_BIN = Redmine::Configuration['scm_command_darcs'] || "darcs"
DARCS_BIN = Redmine::Configuration['scm_darcs_command'] || "darcs"
class << self class << self
def client_version def client_version

+ 1
- 1
lib/redmine/scm/adapters/git_adapter.rb View File

module Adapters module Adapters
class GitAdapter < AbstractAdapter class GitAdapter < AbstractAdapter
# Git executable name # Git executable name
GIT_BIN = Redmine::Configuration['scm_command_git'] || "git"
GIT_BIN = Redmine::Configuration['scm_git_command'] || "git"


def info def info
begin begin

+ 1
- 1
lib/redmine/scm/adapters/mercurial_adapter.rb View File

class MercurialAdapter < AbstractAdapter class MercurialAdapter < AbstractAdapter


# Mercurial executable name # Mercurial executable name
HG_BIN = Redmine::Configuration['scm_command_mercurial'] || "hg"
HG_BIN = Redmine::Configuration['scm_mercurial_command'] || "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"

+ 1
- 1
lib/redmine/scm/adapters/subversion_adapter.rb View File

class SubversionAdapter < AbstractAdapter class SubversionAdapter < AbstractAdapter
# SVN executable name # SVN executable name
SVN_BIN = Redmine::Configuration['scm_command_subversion'] || "svn"
SVN_BIN = Redmine::Configuration['scm_subversion_command'] || "svn"
class << self class << self
def client_version def client_version

Loading…
Cancel
Save