Project

General

Profile

Problems getting SVN commits displayed in activity page (not an autofetch_commits problem)

Added by Nicolas Mussat almost 16 years ago

Hello !

I just switched from trac to redmine and i'm quite happy with it, but i'm having troubles seeing my svn commits in the repository.

I can successfully browse the repository and the changesets are visible in /repositories/show/... pages.
The setting "Autofetch commits" is checked in the redmine settings.
I already run "ruby script/runner "Repository.fetch_changesets" -e production" successfully.
I checked the database using sqlite3 client and I can find the latest changesets corresponding records.
But, those changesets are not shown in my projects.

I've got 4 projects:
- Root
/ BackOffice
/ FrontOffice
/ public

Root is only used to get full informations on its 3 childs.

Each project has a repository configured:
- Root : svn://.../root/trunk/
/ BackOffice : svn://.../root/trunk/backoffice
/ FrontOffice : svn://.../root/trunk/frontoffice
/ public : svn://.../root/trunk/public

I checked the logs and can't found usefull information.

This problem seems very similar to http://www.redmine.org/boards/2/topics/show/3233.

About your application's environment
Ruby version 1.8.6 (x86_64-linux)
RubyGems version 0.9.4
Rails version 2.1.0
Active Record version 2.1.0
Action Pack version 2.1.0
Active Resource version 2.1.0
Action Mailer version 2.1.0
Active Support version 2.1.0
Application root /home/nicolasm/work/redmine
Environment production
Database adapter sqlite
Database schema version 0

Is it the projects repository structure which is incorrect ?

What am I missing or doing wrong ?
What do you need to help me debug this behavior ?

Thanks ! :)
Nicolas


Replies (5)

RE: Problems getting SVN commits displayed in activity page (not an autofetch_commits problem) - Added by Jan M. almost 16 years ago

I have the same problem using 0.8.0 rc1. What Redmine version do you use?

All commits show up under 'Repository', but the last 20 commits are not shown in Activity. It does show Wiki edits etc. from the last days though.
I tried deleting and adding the repository again, but it didn't help.

Anybody knows more about this problem?

Thanks!

RE: Problems getting SVN commits displayed in activity page (not an autofetch_commits problem) - Added by Jan M. almost 16 years ago

Update: I can view the last revisions on Activity if I go to: /projects/activity/<projectname>?from=2009-01-10

Without the 'from' it only shows revisions until 2008-12-03 (but later wiki edits etc. work fine)

Any dev knows what may be wrong? Looks like a date/time issue related to repository/svn...

RE: Problems getting SVN commits displayed in activity page (not an autofetch_commits problem) - Added by Jan M. almost 16 years ago

Update 2:

/projects/activity/<project>?from=2009-1-11, it should show commits from 12/12/2008 to 01/10/2009.
This works perfectly fine, e.g. I see all commits from 12/12 until now.

If I change the link to 2009-1-1 (/projects/activity/<project>?from=2009-1-1), it should show commits from 2008-12-03 to 2009-01-01
This does not work, it only shows the first 10 commits after 2008-12-03, newer commits are not shown..

RE: Problems getting SVN commits displayed in activity page (not an autofetch_commits problem) - Added by Carsten Schurig almost 16 years ago

I have this issue sometimes as well. First I thought is might be a mysql issue (because values for Handler_read_rnd_next and Handler_read_rnd are very high which indicate problems with indexing of the tables or that indexes are not properly used). But on the other hand a restart of RoR helps as well. This way this issue "heals" itself for me because of the use of phusion passenger which stops unused rails applications if not used for a while (ok, this while is long for my configuration currently).

Unfortunately I can't see anything strange in the logs...

Redmine is currently 0.8.0.devel.2136

RE: Problems getting SVN commits displayed in activity page (not an autofetch_commits problem) - Added by Nicolas Mussat almost 16 years ago

After a manual Repository.fetch_changesets, I tried to restart the application and every changesets appeared in the activity page successfully.
The behavior "healed" itself like in http://www.redmine.org/boards/2/topics/show/3233 and everything is fine now :)

I configured a hook in my svn repository to reload changeset on post-commit and everything is now working perfectly.

    (1-5/5)