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