Defect #4657
openWrong timestamp for import of entries of the last ChangeSet.
0%
Description
If you decided to remove the configured SCM System and delete the entries (Settings - Repository) and press the delete button after that all entries in the database for SCM changes are removed.
If you like to redo this you have to go via Settings - Repository and configure the SCM system (in my case SVN) and reread the entries from the SCM system.
The problem is that an entry (changeset) which closes an item (via
fixed #xxx) will be put into the database with the wrong timestamp...based on my experience it is the current timestamp instead of the timestamp of the changeset has been done (in SVN).
But this seemed to be only happen for the last changeset which is done via the first time import.
Files
Related issues
Updated by Josh Sharpe over 14 years ago
I've noticed a similar problem while using git on the 0.9 branch. See attachment. Notice that my git log commits are almost 4 hours appart, but redmine is showing that they both were added 1 minute ago, so, at the same time.
1 minute ago was the first time I had visited the repository in redmine since either of these commits -- so it's when redmine last scanned the repo that is being shown.
Also note that the git commit time is correctly stored in the DB. I have no idea where it's getting whatever other date it's using...
Changeset.find_all_by_revision(["bf2c4e8d7f602491151996ee37f71ecc14fb4e9b", "7456df2720494cea38889459b6faff26db92bd82"])
=> [#<Changeset id: 10994, repository_id: 3, revision: "bf2c4e8d7f602491151996ee37f71ecc14fb4e9b", committer: "Josh Sharpe <josh@razoo.com>", committed_on: "2010-04-14 20:19:46", comments: "fixes #622 test", commit_date: "2010-04-14", scmid: "bf2c4e8d7f602491151996ee37f71ecc14fb4e9b", user_id: 4>, #<Changeset id: 10995, repository_id: 3, revision: "7456df2720494cea38889459b6faff26db92bd82", committer: "Andrey Mikhalchuk <amc@razoo.com>", committed_on: "2010-04-14 16:42:25", comments: "fixes #622, changes images in on the branded promot...", commit_date: "2010-04-14", scmid: "7456df2720494cea38889459b6faff26db92bd82", user_id: 7>]
Updated by Felix Schäfer over 14 years ago
Josh, what you are referring to is the ticket history, and the 2 notes you are referring to where user-generated. The associated revisions you are looking for are in the right-hand side in this view, in your screenshot they're under the terminal window.
Updated by Toshi MARUYAMA over 13 years ago
- Subject changed from Wrong timestamp for import of Subversion entries of the last ChangeSet. to Wrong timestamp for import of entries of the last ChangeSet.