@@ -81,6 +81,22 class Repository::Subversion < Repository | |||||
81 | end |
|
81 | end | |
82 | end |
|
82 | end | |
83 |
|
83 | |||
|
84 | protected | |||
|
85 | ||||
|
86 | def load_entries_changesets(entries) | |||
|
87 | entries_with_identifier = entries.select {|entry| entry.lastrev && entry.lastrev.identifier.present?} | |||
|
88 | identifiers = entries_with_identifier.map {|entry| entry.lastrev.identifier}.compact.uniq | |||
|
89 | ||||
|
90 | if identifiers.any? | |||
|
91 | changesets_by_identifier = changesets.where(:revision => identifiers).includes(:user, :repository).all.group_by(&:revision) | |||
|
92 | entries_with_identifier.each do |entry| | |||
|
93 | if m = changesets_by_identifier[entry.lastrev.identifier] | |||
|
94 | entry.changeset = m.first | |||
|
95 | end | |||
|
96 | end | |||
|
97 | end | |||
|
98 | end | |||
|
99 | ||||
84 | private |
|
100 | private | |
85 |
|
101 | |||
86 | # Returns the relative url of the repository |
|
102 | # Returns the relative url of the repository |
General Comments 0
You need to be logged in to leave comments.
Login now