@@ -159,11 +159,15 class Repository < ActiveRecord::Base | |||
|
159 | 159 | end |
|
160 | 160 | end |
|
161 | 161 | |
|
162 |
# |
|
|
163 |
# |
|
|
162 | # Fetches new changesets for all repositories of active projects | |
|
163 | # Can be called periodically by an external script | |
|
164 | 164 | # eg. ruby script/runner "Repository.fetch_changesets" |
|
165 | 165 | def self.fetch_changesets |
|
166 | find(:all).each(&:fetch_changesets) | |
|
166 | Project.active.has_module(:repository).find(:all, :include => :repository).each do |project| | |
|
167 | if project.repository | |
|
168 | project.repository.fetch_changesets | |
|
169 | end | |
|
170 | end | |
|
167 | 171 | end |
|
168 | 172 | |
|
169 | 173 | # scan changeset comments to find related and fixed issues for all repositories |
General Comments 0
You need to be logged in to leave comments.
Login now