]> source.dussan.org Git - redmine.git/commitdiff
scm: change key name of configurable command name (#7517, #6159, #7047).
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 4 Feb 2011 10:24:10 +0000 (10:24 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 4 Feb 2011 10:24:10 +0000 (10:24 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4797 e93f8b46-1217-0410-a6f0-8f06a7374b81

config/configuration.yml.example
lib/redmine/scm/adapters/bazaar_adapter.rb
lib/redmine/scm/adapters/cvs_adapter.rb
lib/redmine/scm/adapters/darcs_adapter.rb
lib/redmine/scm/adapters/git_adapter.rb
lib/redmine/scm/adapters/mercurial_adapter.rb
lib/redmine/scm/adapters/subversion_adapter.rb

index 7a74711c34c7bf9dc7c7fd7ac622930dddb622f8..a1937959b2b53d9da800c0e5e166b3575649225f 100644 (file)
@@ -110,11 +110,11 @@ default:
   # 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
index bf31b3a9d9a82e72de36ce33cdd8df94fb05f79f..96ec8693d2b2788ba9edaccb1874026b8fcf3c15 100644 (file)
@@ -23,7 +23,7 @@ module Redmine
       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
index 5b5f5cde353430da8fcefb8951e43af0dc59b442..5c81e639f5f31e634fb2fc6f8a0e6d7234fe5cbb 100644 (file)
@@ -23,7 +23,7 @@ module Redmine
       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)
index 0ccc6f10521eb1ae6d1939d8ef5660481889ff71..4eaf4fffef025264a32d5b23ebe8f3329957f10a 100644 (file)
@@ -23,7 +23,7 @@ module Redmine
     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
index d437b95597be1fd9dda533a0967b7c749b0e01c7..a40f450791cc7f293b46e56590f5e4787eb9cff2 100644 (file)
@@ -22,7 +22,7 @@ module Redmine
     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
index f7b5ae9d549e33edbfab252c08547e9d324793b1..f64e70b21107696f733a0a5cee4c19af007db42f 100644 (file)
@@ -24,7 +24,7 @@ module Redmine
       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"
index 253fa0b2fc39fbe3064e44cc7d2f8a935057bb23..28ea55e2f89525f30dafe30671963eba2e538c15 100644 (file)
@@ -24,7 +24,7 @@ module Redmine
       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