remove unneeded Relation#all from Repository::Subversion model
git-svn-id: http://svn.redmine.org/redmine/trunk@12730 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
b6f066ddf3
commit
8832cca13b
|
@ -96,7 +96,7 @@ class Repository::Subversion < Repository
|
||||||
if identifiers.any?
|
if identifiers.any?
|
||||||
changesets_by_identifier =
|
changesets_by_identifier =
|
||||||
changesets.where(:revision => identifiers).
|
changesets.where(:revision => identifiers).
|
||||||
includes(:user, :repository).all.group_by(&:revision)
|
includes(:user, :repository).group_by(&:revision)
|
||||||
entries_with_identifier.each do |entry|
|
entries_with_identifier.each do |entry|
|
||||||
if m = changesets_by_identifier[entry.lastrev.identifier]
|
if m = changesets_by_identifier[entry.lastrev.identifier]
|
||||||
entry.changeset = m.first
|
entry.changeset = m.first
|
||||||
|
|
Loading…
Reference in New Issue