Commit 472654ae authored by Jean-Philippe Lang's avatar Jean-Philippe Lang

Fixed: revision is ignored in MercurialAdapter#cat.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@1288 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 5f78b8a9
......@@ -143,7 +143,9 @@ module Redmine
end
def cat(path, identifier=nil)
cmd = "#{HG_BIN} -R #{target('')} cat #{target(path)}"
cmd = "#{HG_BIN} -R #{target('')} cat"
cmd << " -r #{identifier.to_i}" if identifier
cmd << " #{target(path)}"
cat = nil
shellout(cmd) do |io|
io.binmode
......
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