Patch #5117 » mercurial_adapter_1.8.6fix.patch
| lib/redmine/scm/adapters/mercurial_adapter.rb | ||
|---|---|---|
|
end
|
||
|
|
||
|
def hgversion_from_command_line
|
||
|
%x{#{HG_BIN} --version}.lines.first.to_s
|
||
|
%x{#{HG_BIN} --version}
|
||
|
end
|
||
|
|
||
|
def template_path
|
||
| test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb | ||
|---|---|---|
|
"Mercurial Distributed SCM (1.0.1+20080525)\n" => [1,0,1],
|
||
|
"Mercurial Distributed SCM (1916e629a29d)\n" => nil,
|
||
|
"Mercurial SCM Distribuito (versione 0.9.5)\n" => [0,9,5]}
|
||
|
trailing_text = <<-EOT.gsub /^ +/, ''
|
||
|
(see http://mercurial.selenic.com for more information)
|
||
|
Copyright (C) 2005-2010 Matt Mackall and others
|
||
|
This is free software; see the source for copying conditions. There is NO
|
||
|
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||
|
EOT
|
||
|
|
||
|
to_test.each do |s, v|
|
||
|
test_hgversion_for(s, v)
|
||
|
test_hgversion_for(s + trailing_text, v)
|
||
|
end
|
||
|
end
|
||
|
|
||