Feature #1063

repository auto-update should be called on opening activity

Added by Eike Bernhardt over 11 years ago. Updated over 6 years ago.

Status:NewStart date:2008-04-15
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:SCM
Target version:-
Resolution:

Description

Hello,

I'm using redmine with a remote svn repository, and I do get automatic repository updates on visiting the "Repository" page - but only there.

When just looking at the "Activity" page for a project, no auto-update is performed - so I don't see new changes in the repository.

So maybe '@project.repository.fetch_changesets if Setting.autofetch_changesets?' should be added to the ProjectsController.activity function, too?

autofetch_commits_for_activity.patch Magnifier (839 Bytes) Luca Pireddu, 2008-05-07 17:53

redmine-autoupdate.diff Magnifier (842 Bytes) Eike Bernhardt, 2008-05-21 18:24

redmine-autoupdate-v2.patch Magnifier (945 Bytes) Eike Bernhardt, 2008-05-22 10:17


Related issues

Related to Redmine - Feature #1274: Add option to make auto-fetch changesets fetch when activ... New 2008-05-21

History

#1 Updated by Luca Pireddu over 11 years ago

I would also like to see this feature. Maybe a patch like this would be sufficient?

#2 Updated by Eike Bernhardt over 11 years ago

One small thing seems to be missing - when you want to use "Overall activity", no project is selected - so @project is Nil.

Attached is a changed patch, which checks if @project is set - not really nice, since no fetching of source changes happens then - but this is enough for me.

#3 Updated by Thomas Löber over 11 years ago

Or you could call Repository.fetch_changesets in case @project is nil.

#4 Updated by Eike Bernhardt over 11 years ago

Thats even better .. see redmine-autoupdate-v2.patch - works for me.

#5 Updated by Nick Phillips about 10 years ago

The patch works for me, as far as it goes, but it really needs to work through subprojects too...

#6 Updated by Dipan Mehta over 6 years ago

+1. This must be integrated.

Also available in: Atom PDF