Browse Source

Fixed: revision is ignored in MercurialAdapter#cat.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@1288 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/0.7.0-RC1
Jean-Philippe Lang 16 years ago
parent
commit
472654aebe
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      lib/redmine/scm/adapters/mercurial_adapter.rb

+ 3
- 1
lib/redmine/scm/adapters/mercurial_adapter.rb 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

Loading…
Cancel
Save