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:
parent
5f78b8a9a0
commit
472654aebe
|
@ -143,7 +143,9 @@ module Redmine
|
||||||
end
|
end
|
||||||
|
|
||||||
def cat(path, identifier=nil)
|
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
|
cat = nil
|
||||||
shellout(cmd) do |io|
|
shellout(cmd) do |io|
|
||||||
io.binmode
|
io.binmode
|
||||||
|
|
Loading…
Reference in New Issue