Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 77570 - Different dirty flag behaviour between synchronize view and the context menu in java package explorer
Summary: Different dirty flag behaviour between synchronize view and the context menu ...
Status: RESOLVED DUPLICATE of bug 28903
Alias: None
Product: Platform
Classification: Eclipse Project
Component: CVS (show other bugs)
Version: 3.0.1   Edit
Hardware: PC Windows NT
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: platform-cvs-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-03 04:30 EST by Roger Stoffers CLA
Modified: 2004-11-03 09:16 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roger Stoffers CLA 2004-11-03 04:30:05 EST
I hope I get this right...

We use ant (command-line) to create production builds for our software. Key in 
this production release ant task is that the task gets the latest version of 
all libraries, sources, misc. build environment files etc. from the CVS 
repository.

There is a difference in Eclipse's dirty flagging behaviour:

After a production builds, local files that were previously updated from CVS 
using java package explorer context view, are marked as dirty in eclipse. Files 
that were previously updated using the synchronize view, eg. using 'override 
and update', are not marked as dirty.

So scenario
1. java-package-explorer context menu "update"
2. command line production build
has different dirty flag than scenario
1. synchronize-view update
2. command line production build

However both scenarios result in the latest-greatest sources being present on 
the local filesystem. Checking the dirty files against the repository version 
does not reveal any differences in any case (shouldn't obviously')

IMHO, no files should be flagged as dirty.
Comment 1 Michael Valenta CLA 2004-11-03 07:46:55 EST
On an update, it is the server that indicates taht the timestamp needs to be 
reset. What CVS server version are you using? Override and Update actually 
deletes and then updates the file so it will be in-sync for sure. What happens 
if you perform a Clean Timestamps from the Synchronize view (in essence, a 
Clean Timestamps is like Team>Update but the client does the comparison instead 
of the server).
Comment 2 Roger Stoffers CLA 2004-11-03 08:57:09 EST
You're right, clean timestamps does resolve the issue, but, why is it that 
after external CVS update ant task, the GUI thinks they are dirty; the files 
are IMO exactly the same? 

We use 
ant: cvs command="-r -z9 -d :pserver:${cvs.login}:${cvs.password}
@${cvs.server}:${cvs.repository} update -r ${cvs.branch}" 

Comment 3 Michael Valenta CLA 2004-11-03 09:16:38 EST
An update using the command line client may use timestamps that differ by 1 
hour from those generated by Eclipse. This issue is tracked in bug 28903.

*** This bug has been marked as a duplicate of 28903 ***