autofetch_commits_for_activity.patch

Luca Pireddu, 2008-05-07 17:53

Download (839 Bytes)

View differences:

app/controllers/projects_controller.rb (working copy)
302 302
    end
303 303
    if @scope.include?('changesets')
304
      # check if new revisions have been committed in the repository
305
      @project.repository.fetch_changesets if Setting.autofetch_changesets? && @project.repository
304 306
      cond = ARCondition.new(Project.allowed_to_condition(User.current, :view_changesets, :project => @project, :with_subprojects => @with_subprojects))
305 307
      cond.add(["#{Changeset.table_name}.committed_on BETWEEN ? AND ?", @date_from, @date_to])
306 308
      @events += Changeset.find(:all, :include => {:repository => :project}, :conditions => cond.conditions)