Fixed: revision is ignored in MercurialAdapter#cat.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@1288 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2008-03-21 22:19:37 +00:00
parent 5f78b8a9a0
commit 472654aebe
1 changed files with 3 additions and 1 deletions

View File

@ -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