Project

General

Profile

Defect #3743 » hg_win.patch

Jason Best, 2010-04-12 21:20

View differences:

lib/redmine/scm/adapters/mercurial_adapter.rb
16 16
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
17 17

  
18 18
require 'redmine/scm/adapters/abstract_adapter'
19
require 'rbconfig'
20
include Config
19 21

  
20 22
module Redmine
21 23
  module Scm
......
23 25
      class MercurialAdapter < AbstractAdapter
24 26
        
25 27
        # Mercurial executable name
26
        HG_BIN = "hg"
28
        if CONFIG['host_os'] =~ /mswin|windows/i then
29
          HG_BIN = "hg.exe"
30
        else
31
          HG_BIN = "hg"
32
        end
33
        
27 34
        TEMPLATES_DIR = File.dirname(__FILE__) + "/mercurial"
28 35
        TEMPLATE_NAME = "hg-template"
29 36
        TEMPLATE_EXTENSION = "tmpl"
(3-3/3)