1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-19 15:01:14 +00:00

cleanup: rubocop: fix Style/MultilineIfModifier in lib/redmine/scm/adapters/subversion_adapter.rb

git-svn-id: http://svn.redmine.org/redmine/trunk@19183 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2019-11-23 07:58:02 +00:00
parent fd3703b830
commit ce76bc8b16
2 changed files with 11 additions and 8 deletions

View File

@ -1264,7 +1264,6 @@ Style/MultilineIfModifier:
- 'lib/redmine/access_keys.rb' - 'lib/redmine/access_keys.rb'
- 'lib/redmine/helpers/gantt.rb' - 'lib/redmine/helpers/gantt.rb'
- 'lib/redmine/scm/adapters/git_adapter.rb' - 'lib/redmine/scm/adapters/git_adapter.rb'
- 'lib/redmine/scm/adapters/subversion_adapter.rb'
- 'lib/redmine/wiki_formatting.rb' - 'lib/redmine/wiki_formatting.rb'
- 'lib/redmine/wiki_formatting/textile/redcloth3.rb' - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
- 'test/mocks/open_id_authentication_mock.rb' - 'test/mocks/open_id_authentication_mock.rb'

View File

@ -172,13 +172,17 @@ module Redmine
doc = parse_xml(output) doc = parse_xml(output)
each_xml_element(doc['log'], 'logentry') do |logentry| each_xml_element(doc['log'], 'logentry') do |logentry|
paths = [] paths = []
each_xml_element(logentry['paths'], 'path') do |path| if logentry['paths'] && logentry['paths']['path']
paths << {:action => path['action'], each_xml_element(logentry['paths'], 'path') do |path|
:path => path['__content__'], paths <<
:from_path => path['copyfrom-path'], {
:from_revision => path['copyfrom-rev'] :action => path['action'],
} :path => path['__content__'],
end if logentry['paths'] && logentry['paths']['path'] :from_path => path['copyfrom-path'],
:from_revision => path['copyfrom-rev']
}
end
end
paths.sort_by! {|e| e[:path]} paths.sort_by! {|e| e[:path]}
revisions << Revision.new({:identifier => logentry['revision'], revisions << Revision.new({:identifier => logentry['revision'],