summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-23 07:57:40 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-23 07:57:40 +0000
commitbcd9ce0a531798f704e5764b8587b9a7af7bc3f7 (patch)
tree004309a942c2beb55bf47eed51765bffeceefbd0 /lib
parent20e17f14e7972deee75cf7f43ad77f9b91eee8c5 (diff)
downloadredmine-bcd9ce0a531798f704e5764b8587b9a7af7bc3f7.tar.gz
redmine-bcd9ce0a531798f704e5764b8587b9a7af7bc3f7.zip
cleanup: rubocop: fix Layout/IndentFirstHashElement in lib/redmine/scm/adapters/subversion_adapter.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19181 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine/scm/adapters/subversion_adapter.rb26
1 files changed, 16 insertions, 10 deletions
diff --git a/lib/redmine/scm/adapters/subversion_adapter.rb b/lib/redmine/scm/adapters/subversion_adapter.rb
index 76e7917fd..06420620d 100644
--- a/lib/redmine/scm/adapters/subversion_adapter.rb
+++ b/lib/redmine/scm/adapters/subversion_adapter.rb
@@ -69,11 +69,14 @@ module Redmine
doc = parse_xml(output)
# root_url = doc.elements["info/entry/repository/root"].text
info = Info.new({:root_url => doc['info']['entry']['repository']['root']['__content__'],
- :lastrev => Revision.new({
- :identifier => doc['info']['entry']['commit']['revision'],
- :time => Time.parse(doc['info']['entry']['commit']['date']['__content__']).localtime,
- :author => (doc['info']['entry']['commit']['author'] ? doc['info']['entry']['commit']['author']['__content__'] : "")
- })
+ :lastrev =>
+ Revision.new(
+ {
+ :identifier => doc['info']['entry']['commit']['revision'],
+ :time => Time.parse(doc['info']['entry']['commit']['date']['__content__']).localtime,
+ :author => (doc['info']['entry']['commit']['author'] ? doc['info']['entry']['commit']['author']['__content__'] : "")
+ }
+ )
})
rescue
end
@@ -109,11 +112,14 @@ module Redmine
:path => ((path.empty? ? "" : "#{path}/") + name),
:kind => entry['kind'],
:size => ((s = entry['size']) ? s['__content__'].to_i : nil),
- :lastrev => Revision.new({
- :identifier => commit['revision'],
- :time => Time.parse(commit_date['__content__'].to_s).localtime,
- :author => ((a = commit['author']) ? a['__content__'] : nil)
- })
+ :lastrev =>
+ Revision.new(
+ {
+ :identifier => commit['revision'],
+ :time => Time.parse(commit_date['__content__'].to_s).localtime,
+ :author => ((a = commit['author']) ? a['__content__'] : nil)
+ }
+ )
})
end
rescue => e