Project

General

Profile

Feature #1063 » redmine-autoupdate.diff

Eike Bernhardt, 2008-05-21 18:24

View differences:

app/controllers/projects_controller.rb (working copy)
302 302
    end
303 303

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