mirror of
https://github.com/redmine/redmine.git
synced 2025-12-16 05:20:28 +01: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:
@@ -172,13 +172,17 @@ module Redmine
|
||||
doc = parse_xml(output)
|
||||
each_xml_element(doc['log'], 'logentry') do |logentry|
|
||||
paths = []
|
||||
each_xml_element(logentry['paths'], 'path') do |path|
|
||||
paths << {:action => path['action'],
|
||||
:path => path['__content__'],
|
||||
:from_path => path['copyfrom-path'],
|
||||
:from_revision => path['copyfrom-rev']
|
||||
}
|
||||
end if logentry['paths'] && logentry['paths']['path']
|
||||
if logentry['paths'] && logentry['paths']['path']
|
||||
each_xml_element(logentry['paths'], 'path') do |path|
|
||||
paths <<
|
||||
{
|
||||
:action => path['action'],
|
||||
:path => path['__content__'],
|
||||
:from_path => path['copyfrom-path'],
|
||||
:from_revision => path['copyfrom-rev']
|
||||
}
|
||||
end
|
||||
end
|
||||
paths.sort_by! {|e| e[:path]}
|
||||
|
||||
revisions << Revision.new({:identifier => logentry['revision'],
|
||||
|
||||
Reference in New Issue
Block a user