Patch #5117 » fix_mercurial_localization_issue.diff
| lib/redmine/scm/adapters/mercurial_adapter.rb | ||
|---|---|---|
|
# release number (eg 0.9.5 or 1.0) or as a revision
|
||
|
# id composed of 12 hexa characters.
|
||
|
theversion = hgversion_from_command_line
|
||
|
if theversion.match(/^\d+(\.\d+)+/)
|
||
|
theversion.split(".").collect(&:to_i)
|
||
|
if m = theversion.match(/((\d+\.)+\d+)/)
|
||
|
theversion = m[0].scan(/\d+/).collect(&:to_i)
|
||
|
end
|
||
|
end
|
||
|
|
||
|
def hgversion_from_command_line
|
||
|
%x{#{HG_BIN} --version}.match(/\(version (.*)\)/)[1]
|
||
|
%x{#{HG_BIN} --version}
|
||
|
end
|
||
|
|
||
|
def template_path
|
||