Defect #3743 » hg_win.patch
| 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"
|
||
- « Previous
- 1
- 2
- 3
- Next »