- 'app/models/issue_query.rb'
- 'app/models/query.rb'
- 'app/models/repository/bazaar.rb'
- - 'app/models/repository/subversion.rb'
- 'app/models/time_entry_query.rb'
- 'app/views/common/feed.atom.builder'
- 'lib/redmine/access_keys.rb'
# loads changesets by batches of 200
identifier_to = [identifier_from + 199, scm_revision].min
revisions = scm.revisions('', identifier_to, identifier_from, :with_paths => true)
- revisions.reverse_each do |revision|
- transaction do
- changeset = Changeset.create(:repository => self,
- :revision => revision.identifier,
- :committer => revision.author,
- :committed_on => revision.time,
- :comments => revision.message)
-
- revision.paths.each do |change|
- changeset.create_change(change)
- end unless changeset.new_record?
+ unless revisions.nil?
+ revisions.reverse_each do |revision|
+ transaction do
+ changeset = Changeset.create(:repository => self,
+ :revision => revision.identifier,
+ :committer => revision.author,
+ :committed_on => revision.time,
+ :comments => revision.message)
+ unless changeset.new_record?
+ revision.paths.each do |change|
+ changeset.create_change(change)
+ end
+ end
+ end
end
- end unless revisions.nil?
+ end
identifier_from = identifier_to + 1
end
end