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
This commit is contained in:
parent
0833abd9e5
commit
190d288381
|
@ -110,10 +110,17 @@ module Redmine
|
||||||
end
|
end
|
||||||
|
|
||||||
def summary
|
def summary
|
||||||
@summary ||= hg 'rhsummary' do |io|
|
return @summary if @summary
|
||||||
ActiveSupport::XmlMini.parse(io.read)['rhsummary']
|
doc = nil
|
||||||
|
hg 'rhsummary' do |io|
|
||||||
|
output = io.read
|
||||||
|
begin
|
||||||
|
doc = ActiveSupport::XmlMini.parse(output)['rhsummary']
|
||||||
|
rescue
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@summary = doc
|
||||||
|
end
|
||||||
private :summary
|
private :summary
|
||||||
|
|
||||||
def entries(path=nil, identifier=nil)
|
def entries(path=nil, identifier=nil)
|
||||||
|
|
Loading…
Reference in New Issue