Project

General

Profile

Defect #3743 » hg_win.patch

Jason Best, 2010-04-12 21:20

View differences:

lib/redmine/scm/adapters/mercurial_adapter.rb
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
require 'redmine/scm/adapters/abstract_adapter'
require 'rbconfig'
include Config
module Redmine
module Scm
......
class MercurialAdapter < AbstractAdapter
# Mercurial executable name
HG_BIN = "hg"
if CONFIG['host_os'] =~ /mswin|windows/i then
HG_BIN = "hg.exe"
else
HG_BIN = "hg"
end
TEMPLATES_DIR = File.dirname(__FILE__) + "/mercurial"
TEMPLATE_NAME = "hg-template"
TEMPLATE_EXTENSION = "tmpl"
(3-3/3)