Mercurial > hg > soundsoftware-site
comparison lib/redmine/scm/adapters/mercurial_adapter.rb @ 251:c2ffbc10233e cannam
* We don't use Mercurial <1.5
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Thu, 03 Mar 2011 14:39:01 +0000 |
parents | eeebe205a056 |
children | 753f1380d6bc |
comparison
equal
deleted
inserted
replaced
250:c90c42a771ec | 251:c2ffbc10233e |
---|---|
186 output = io.read | 186 output = io.read |
187 if output.respond_to?(:force_encoding) | 187 if output.respond_to?(:force_encoding) |
188 output.force_encoding('UTF-8') | 188 output.force_encoding('UTF-8') |
189 end | 189 end |
190 begin | 190 begin |
191 # Mercurial < 1.5 does not support footer template for '</log>' | 191 ActiveSupport::XmlMini.parse("#{output}")['log'] |
192 ActiveSupport::XmlMini.parse("#{output}</log>")['log'] | |
193 rescue | 192 rescue |
194 end | 193 end |
195 end | 194 end |
196 | 195 |
197 as_ary(log['logentry']).each do |le| | 196 as_ary(log['logentry']).each do |le| |