From: Toshi MARUYAMA Date: Mon, 27 Jan 2014 01:42:31 +0000 (+0000) Subject: code format cleanup Repository::Subversion model X-Git-Tag: 2.5.0~174 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c489c2821912fed19261550961418601260ac9d1;p=redmine.git code format cleanup Repository::Subversion model git-svn-id: http://svn.redmine.org/redmine/trunk@12726 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/models/repository/subversion.rb b/app/models/repository/subversion.rb index 10cd3b6d4..c1fb746a9 100644 --- a/app/models/repository/subversion.rb +++ b/app/models/repository/subversion.rb @@ -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