diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-02-18 14:49:09 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-02-18 14:49:09 +0000 |
commit | 96f82be2f437793437b3925970aa9be1fe693b9a (patch) | |
tree | d9e6299c062d89bed8cfd23adf85bf5b9730bf30 /lib/redmine | |
parent | 190d288381795fe6d527eb66f0eec852c48663f2 (diff) | |
download | redmine-96f82be2f437793437b3925970aa9be1fe693b9a.tar.gz redmine-96f82be2f437793437b3925970aa9be1fe693b9a.zip |
scm: mercurial: simplify fixing exception operation in adapter "summary" method (#4455).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4878 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine')
-rw-r--r-- | lib/redmine/scm/adapters/mercurial_adapter.rb | 4 |
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 |