scm: mercurial: convert copied file path encoding (#2664).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4995 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
5c3caf2e6b
commit
32e69dcaca
|
@ -196,7 +196,9 @@ module Redmine
|
|||
|
||||
as_ary(log['logentry']).each do |le|
|
||||
cpalist = as_ary(le['paths']['path-copied']).map do |e|
|
||||
[e['__content__'], e['copyfrom-path']].map { |s| CGI.unescape(s) }
|
||||
[e['__content__'], e['copyfrom-path']].map do |s|
|
||||
scm_iconv('UTF-8', @path_encoding, CGI.unescape(s))
|
||||
end
|
||||
end
|
||||
cpmap = Hash[*cpalist.flatten]
|
||||
|
||||
|
|
Loading…
Reference in New Issue