Commit 4bd39c9d authored by Toshi MARUYAMA's avatar Toshi MARUYAMA Committed by Eric Davis

scm: mercurial: path encoding support for "cat" in adapter (#2664).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4928 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 6caa0f1c
......@@ -228,7 +228,8 @@ module Redmine
end
def cat(path, identifier=nil)
hg 'cat', '-r', hgrev(identifier), hgtarget(path) do |io|
p = CGI.escape(scm_iconv(@path_encoding, 'UTF-8', path))
hg 'rhcat', '-r', hgrev(identifier), hgtarget(p) do |io|
io.binmode
io.read
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment