]> source.dussan.org Git - redmine.git/commitdiff
code format cleanup Repository::Subversion model
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 27 Jan 2014 01:42:31 +0000 (01:42 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 27 Jan 2014 01:42:31 +0000 (01:42 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@12726 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/repository/subversion.rb

index 10cd3b6d49b133628314b51fa5463be92c66cfe3..c1fb746a98b3b911f61673563a9b655829aa277c 100644 (file)
@@ -90,12 +90,13 @@ class Repository::Subversion < Repository
 
   def load_entries_changesets(entries)
     return unless entries
-
-    entries_with_identifier = entries.select {|entry| entry.lastrev && entry.lastrev.identifier.present?}
+    entries_with_identifier =
+      entries.select {|entry| entry.lastrev && entry.lastrev.identifier.present?}
     identifiers = entries_with_identifier.map {|entry| entry.lastrev.identifier}.compact.uniq
-
     if identifiers.any?
-      changesets_by_identifier = changesets.where(:revision => identifiers).includes(:user, :repository).all.group_by(&:revision)
+      changesets_by_identifier =
+        changesets.where(:revision => identifiers).
+          includes(:user, :repository).all.group_by(&:revision)
       entries_with_identifier.each do |entry|
         if m = changesets_by_identifier[entry.lastrev.identifier]
           entry.changeset = m.first