# HG changeset patch # User Chris Cannam # Date 1280318293 -3600 # Node ID ed5f37ea0d067eca30980addc143b261d988c5d7 # Parent 93b07183b4a9cca65c6860c29ab147c886f411dd * Clumsy fix for Mercurial <1.5 failure to support footer for diff -r 93b07183b4a9 -r ed5f37ea0d06 lib/redmine/scm/adapters/mercurial_adapter.rb --- a/lib/redmine/scm/adapters/mercurial_adapter.rb Wed Jul 28 12:48:55 2010 +0100 +++ b/lib/redmine/scm/adapters/mercurial_adapter.rb Wed Jul 28 12:58:13 2010 +0100 @@ -141,7 +141,7 @@ hg_args << '-r' << "#{hgrev(identifier_from)}:#{hgrev(identifier_to)}" hg_args << '--limit' << options[:limit] if options[:limit] hg_args << without_leading_slash(path) unless path.blank? - doc = hg(*hg_args) { |io| REXML::Document.new(io.read) } + doc = hg(*hg_args) { |io| REXML::Document.new(io.read.concat('')) } # TODO: ??? HG doesn't close the XML Document... doc.each_element('log/logentry') do |le|