Add "--encoding utf8" option to the Mercurial "hg log" command in order to get utf8 encoded commit logs (#834).

git-svn-id: http://redmine.rubyforge.org/svn/trunk@1256 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2008-03-15 11:05:22 +00:00
parent 01fdaf5977
commit 451aa6ba4e
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ module Redmine
def revisions(path=nil, identifier_from=nil, identifier_to=nil, options={}) def revisions(path=nil, identifier_from=nil, identifier_to=nil, options={})
revisions = Revisions.new revisions = Revisions.new
cmd = "#{HG_BIN} -v -R #{target('')} log" cmd = "#{HG_BIN} -v --encoding utf8 -R #{target('')} log"
if identifier_from && identifier_to if identifier_from && identifier_to
cmd << " -r #{identifier_from.to_i}:#{identifier_to.to_i}" cmd << " -r #{identifier_from.to_i}:#{identifier_to.to_i}"
elsif identifier_from elsif identifier_from