Bug 35527 - Empty folder causes project always being dirty
Summary: Empty folder causes project always being dirty
Status: RESOLVED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Team (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-VCM-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: readme
Depends on:
Blocks:
 
Reported: 2003-03-21 17:21 EST by Boris Shingarov CLA
Modified: 2005-05-06 17:18 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Boris Shingarov CLA 2003-03-21 17:21:13 EST
Case 1.  Let's set the pref to _not_ prune empty dirs.
Create a project with two folders, F1 and F2.  Create a file in F1.  PPP -> 
Team -> Share Project.  In the Synchronize view, add the project to version 
control.  Note that it prunes F2 in the sync view.  No commit the whole 
project.  In the Navigator, the project is still dirty, and shows F2 not being 
under version control.

If we now manually say F2 -> Add to version control, and even commit the whole 
project, it's still dirty.
Comment 1 Boris Shingarov CLA 2003-03-21 17:23:45 EST
Case 2.  If the prune pref is "DO prune", it does not change the behavior.
Comment 2 Michael Valenta CLA 2003-03-24 15:08:09 EST
It turns out that the error in case 1 existed in 2.0.2. Strangely, the error in 
case 2 does not occur when you are debugging (making in difficult to track 
down). We'll add this bug to the readme for 2.1.
Comment 3 Boris Shingarov CLA 2003-03-24 15:32:21 EST
We have spent some time investigating it some more with JML, and we observed 
some additional subtleties.

1. The bug happens only for first-time added folders on a new project.  That 
is, you reproduce the bug as described above, and then make "update".  The 
project is clean, and *from that point on*, it looks like the bug can't be 
reproduced - adding new folders behaves fine.

2. The bug is very sensitive to the order of operations.  If we add the empty 
folder to verson control directly from the navigator - without first adding 
the whole project _using the sync view_, the project gets marked as clean.

JML and I both believe this bug is not for 2.1.

Comment 4 Boris Shingarov CLA 2003-03-24 16:08:45 EST
I would amplify statement (1) in the last comment.  It turns out even just 
creating and adding a new empty folder permanently rectifies the problem.
Comment 5 Michael Valenta CLA 2005-05-06 17:18:48 EDT
This bug has not been touched for 2 years. Closing as WONTFIX. Please reopen if 
you feel this is still an important issue.