scm: mercurial: change "--cwd" option to "-R" for running "hg" (#4455).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4839 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-02-16 01:14:10 +00:00
parent a6fad1eb66
commit f66b53577f
1 changed files with 1 additions and 1 deletions

View File

@ -232,7 +232,7 @@ module Redmine
# Runs 'hg' command with the given args # Runs 'hg' command with the given args
def hg(*args, &block) def hg(*args, &block)
full_args = [HG_BIN, '--cwd', url, '--encoding', 'utf-8'] full_args = [HG_BIN, '-R', root_url, '--encoding', 'utf-8']
full_args << '--config' << "extensions.redminehelper=#{HG_HELPER_EXT}" full_args << '--config' << "extensions.redminehelper=#{HG_HELPER_EXT}"
full_args << '--config' << 'diff.git=false' full_args << '--config' << 'diff.git=false'
full_args += args full_args += args