@@ -110,11 +110,11 default: | |||||
110 | # Configuration of SCM executable command. |
|
110 | # Configuration of SCM executable command. | |
111 | # Absolute path (e.g. /usr/local/bin/hg) or command name (e.g. hg.exe, bzr.exe) |
|
111 | # Absolute path (e.g. /usr/local/bin/hg) or command name (e.g. hg.exe, bzr.exe) | |
112 | # On Windows, *.cmd, *.bat (e.g. hg.cmd, bzr.bat) does not work. |
|
112 | # On Windows, *.cmd, *.bat (e.g. hg.cmd, bzr.bat) does not work. | |
113 |
scm_ |
|
113 | scm_subversion_command: svn # (default: svn) | |
114 |
scm_ |
|
114 | scm_mercurial_command: "\"C:\Program Files\TortoiseHg\hg.exe\"" # (default: hg) | |
115 |
scm_command |
|
115 | scm_git_command: /usr/local/bin/git # (default: git) | |
116 |
scm_command |
|
116 | scm_bazaar_command: bzr.exe # (default: bzr) | |
117 |
scm_command |
|
117 | scm_darcs_command: darcs-1.0.9-i386-linux # (default: darcs) | |
118 |
|
118 | |||
119 | # specific configuration options for production environment |
|
119 | # specific configuration options for production environment | |
120 | # that overrides the default ones |
|
120 | # that overrides the default ones |
@@ -23,7 +23,7 module Redmine | |||||
23 | class BazaarAdapter < AbstractAdapter |
|
23 | class BazaarAdapter < AbstractAdapter | |
24 |
|
24 | |||
25 | # Bazaar executable name |
|
25 | # Bazaar executable name | |
26 |
BZR_BIN = Redmine::Configuration['scm_command |
|
26 | BZR_BIN = Redmine::Configuration['scm_bazaar_command'] || "bzr" | |
27 |
|
27 | |||
28 | # Get info about the repository |
|
28 | # Get info about the repository | |
29 | def info |
|
29 | def info |
@@ -23,7 +23,7 module Redmine | |||||
23 | class CvsAdapter < AbstractAdapter |
|
23 | class CvsAdapter < AbstractAdapter | |
24 |
|
24 | |||
25 | # CVS executable name |
|
25 | # CVS executable name | |
26 |
CVS_BIN = Redmine::Configuration['scm_command |
|
26 | CVS_BIN = Redmine::Configuration['scm_cvs_command'] || "cvs" | |
27 |
|
27 | |||
28 | # Guidelines for the input: |
|
28 | # Guidelines for the input: | |
29 | # url -> the project-path, relative to the cvsroot (eg. module name) |
|
29 | # url -> the project-path, relative to the cvsroot (eg. module name) |
@@ -23,7 +23,7 module Redmine | |||||
23 | module Adapters |
|
23 | module Adapters | |
24 | class DarcsAdapter < AbstractAdapter |
|
24 | class DarcsAdapter < AbstractAdapter | |
25 | # Darcs executable name |
|
25 | # Darcs executable name | |
26 |
DARCS_BIN = Redmine::Configuration['scm_command |
|
26 | DARCS_BIN = Redmine::Configuration['scm_darcs_command'] || "darcs" | |
27 |
|
27 | |||
28 | class << self |
|
28 | class << self | |
29 | def client_version |
|
29 | def client_version |
@@ -22,7 +22,7 module Redmine | |||||
22 | module Adapters |
|
22 | module Adapters | |
23 | class GitAdapter < AbstractAdapter |
|
23 | class GitAdapter < AbstractAdapter | |
24 | # Git executable name |
|
24 | # Git executable name | |
25 |
GIT_BIN = Redmine::Configuration['scm_command |
|
25 | GIT_BIN = Redmine::Configuration['scm_git_command'] || "git" | |
26 |
|
26 | |||
27 | def info |
|
27 | def info | |
28 | begin |
|
28 | begin |
@@ -24,7 +24,7 module Redmine | |||||
24 | class MercurialAdapter < AbstractAdapter |
|
24 | class MercurialAdapter < AbstractAdapter | |
25 |
|
25 | |||
26 | # Mercurial executable name |
|
26 | # Mercurial executable name | |
27 |
HG_BIN = Redmine::Configuration['scm_ |
|
27 | HG_BIN = Redmine::Configuration['scm_mercurial_command'] || "hg" | |
28 | TEMPLATES_DIR = File.dirname(__FILE__) + "/mercurial" |
|
28 | TEMPLATES_DIR = File.dirname(__FILE__) + "/mercurial" | |
29 | TEMPLATE_NAME = "hg-template" |
|
29 | TEMPLATE_NAME = "hg-template" | |
30 | TEMPLATE_EXTENSION = "tmpl" |
|
30 | TEMPLATE_EXTENSION = "tmpl" |
@@ -24,7 +24,7 module Redmine | |||||
24 | class SubversionAdapter < AbstractAdapter |
|
24 | class SubversionAdapter < AbstractAdapter | |
25 |
|
25 | |||
26 | # SVN executable name |
|
26 | # SVN executable name | |
27 |
SVN_BIN = Redmine::Configuration['scm_ |
|
27 | SVN_BIN = Redmine::Configuration['scm_subversion_command'] || "svn" | |
28 |
|
28 | |||
29 | class << self |
|
29 | class << self | |
30 | def client_version |
|
30 | def client_version |
General Comments 0
You need to be logged in to leave comments.
Login now