# Configuration of SCM executable command.
# 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.
- 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
# that overrides the default ones
class BazaarAdapter < AbstractAdapter
# Bazaar executable name
- BZR_BIN = Redmine::Configuration['scm_command_bazaar'] || "bzr"
+ BZR_BIN = Redmine::Configuration['scm_bazaar_command'] || "bzr"
# Get info about the repository
def info
class CvsAdapter < AbstractAdapter
# CVS executable name
- CVS_BIN = Redmine::Configuration['scm_command_cvs'] || "cvs"
+ CVS_BIN = Redmine::Configuration['scm_cvs_command'] || "cvs"
# Guidelines for the input:
# url -> the project-path, relative to the cvsroot (eg. module name)
module Adapters
class DarcsAdapter < AbstractAdapter
# Darcs executable name
- DARCS_BIN = Redmine::Configuration['scm_command_darcs'] || "darcs"
+ DARCS_BIN = Redmine::Configuration['scm_darcs_command'] || "darcs"
class << self
def client_version
module Adapters
class GitAdapter < AbstractAdapter
# Git executable name
- GIT_BIN = Redmine::Configuration['scm_command_git'] || "git"
+ GIT_BIN = Redmine::Configuration['scm_git_command'] || "git"
def info
begin
class MercurialAdapter < AbstractAdapter
# 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"
TEMPLATE_NAME = "hg-template"
TEMPLATE_EXTENSION = "tmpl"
class SubversionAdapter < AbstractAdapter\r
\r
# SVN executable name\r
- SVN_BIN = Redmine::Configuration['scm_command_subversion'] || "svn"\r
+ SVN_BIN = Redmine::Configuration['scm_subversion_command'] || "svn"\r
\r
class << self\r
def client_version\r