Commit add4b117 authored by Toshi MARUYAMA's avatar Toshi MARUYAMA Committed by Eric Davis

scm: mercurial: fix exception operation in adapter "summary" method (#4455).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4876 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent e334d3db
......@@ -110,9 +110,16 @@ module Redmine
end
def summary
@summary ||= hg 'rhsummary' do |io|
ActiveSupport::XmlMini.parse(io.read)['rhsummary']
return @summary if @summary
doc = nil
hg 'rhsummary' do |io|
output = io.read
begin
doc = ActiveSupport::XmlMini.parse(output)['rhsummary']
rescue
end
end
@summary = doc
end
private :summary
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment