Summary: | CVS/Team uses file creation time instead of modified time | ||
---|---|---|---|
Product: | [Eclipse Project] Platform | Reporter: | Ryan Lowe <ryanlowe> |
Component: | Team | Assignee: | Platform Team Inbox <platform-team-inbox> |
Status: | RESOLVED DUPLICATE | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | ||
Version: | 3.1 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Ryan Lowe
2005-04-03 11:53:01 EDT
I created a new empty workspace and checked out my projects into it. I could not reproduce this problem on a new workspace. I switched back from the new workspace (comment #1) to the imported workspace (comment #0) from 3.1M5a, refreshed all projects and synchronized with the CVS repository again. This time all of the marked (>) files -- most of the files in my workspace -- show up in the Team Synchronization perspective as outgoing changes even though I have not made changes to any of them, I have only switched workspaces. Is this some sort of CVS/Team timestamping issue? Is there a way to clear CVS/Team timestamps to test that? Could it be related to the Daylight Savings Time change? The Windows machine where I run Eclipse changed its time automatically last night and it seems that the Linux machine (Fedora Core 3) I use as a CVS server changed automatically as well. Their time difference right now is only 20 seconds. I re-copied my 3.1M5a workspace to confirm I can reproduce this problem and I can easily. I will keep this 3.1M5a workspace and not change it. This time I noticed that half of the CVS decorations (>) appeared during the initial build after the workspace was imported into 3.1M6. The rest of the decorations appeared after I refreshed the projects. After that I synchronized all of the projects with the CVS repository and all of the marked files showed up in the Team Synchronization perspective. None had local changes. --- Here's something interesting. I copied the workspace with Windows Explorer so strictly speaking all of the files are "new", just copies. Here are timestamps from a file in the workspace viewed from Windows Explorer: In original 3.1M5 workspace: Created: Wednesday, March 23, 2005, 4:57:18 AM Modified: Wednesday, March 23, 2005, 4:59:44 AM The same file, in copied 3.1M6 workspace: Created: Today, April 03, 2005, 12:42:09 PM Modified: Wednesday, March 23, 2005, 4:59:44 AM That might explain why CVS/Team thinks this file has changed. I have copied workspaces before and never had problems with Team Synchronization like this. Is this the intended behaviour? The proble is actually in how Java determines the file timestamp on some file systems (e.g. FAT, Samba and a few others). The method that is used causes the timestamp to change when a time change occurs. The workaround is to either perform a Team>Update on all projects or a Clean imestamps in the synchronize view. *** This bug has been marked as a duplicate of 5337 *** |