summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/redmine/scm/adapters/mercurial_adapter.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/redmine/scm/adapters/mercurial_adapter.rb b/lib/redmine/scm/adapters/mercurial_adapter.rb
index 80ad02f58..1f706946f 100644
--- a/lib/redmine/scm/adapters/mercurial_adapter.rb
+++ b/lib/redmine/scm/adapters/mercurial_adapter.rb
@@ -113,13 +113,11 @@ module Redmine
return @summary if @summary
doc = nil
hg 'rhsummary' do |io|
- output = io.read
begin
- doc = ActiveSupport::XmlMini.parse(output)['rhsummary']
+ @summary = ActiveSupport::XmlMini.parse(io.read)['rhsummary']
rescue
end
end
- @summary = doc
end
private :summary