Commit 7934e32e authored by Toshi MARUYAMA's avatar Toshi MARUYAMA Committed by Eric Davis

scm: mercurial: fix Ruby 1.9 "hg diff" test fails (#7518).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4859 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 77f64963
......@@ -170,10 +170,13 @@ module Redmine
hg_args << '-c' << hgrev(identifier_from)
end
hg_args << CGI.escape(hgtarget(path)) unless path.blank?
diff = []
hg *hg_args do |io|
io.collect
io.each_line do |line|
diff << line
end
end
diff
rescue HgCommandAborted
nil # means not found
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