Most recent CVS revisions are missing in "revisions" view
|Assignee:||Toshi MARUYAMA||% Done:|
When retrieving the latest revisions from CVS the most recent ones (within a few hours) are missing because (I believe) CVS uses UTC timestamps but Redmine must be querying using the users local timezone, im my case EST. The most recent check-ins appear to be "in the future" so I think Redmine misses them.
#2 Updated by David Hrivnak almost 10 years ago
- Status changed from New to Resolved
I managed to fix this by editing the following line in app/models/repository/cvs.rb (line 101)
FROM: fetch_since = latest_changeset ? latest_changeset.committed_on : nil
TO: fetch_since = latest_changeset ? latest_changeset.committed_on - 4.hours : nil
The times reported by redmine are still off (since CVS is UTC) but this change prevents redmine from missing the most recent checkins. I didn't check this in given it's hackish.