Bug 20621 - [CVS Core] CVS folder remains after folder moved
Summary: [CVS Core] CVS folder remains after folder moved
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Team (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows XP
: P1 major (vote)
Target Milestone: 2.1   Edit
Assignee: Kevin McGuire CLA
QA Contact:
URL:
Whiteboard:
Keywords: readme
: 24401 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-06-19 02:21 EDT by Joseph Molnar CLA
Modified: 2002-10-04 13:02 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Molnar CLA 2002-06-19 02:21:30 EDT
This happened when I copied a rather large directory tree ...

I had multiple projects open, each project was 'mapped' to a different CVS 
repository. I wanted to move things between the servers (didn't care about 
loosing the history of those files).

When I copied it actually copied the physical CVS directories, which it 
shouldn't have since, well eclipse then assumed those directories were mapped 
to the wrong CVS repository and I had to delete all the CVS directories by 
hand (not terribly hard to do, but still, if I hadn't noticed, it could have 
been very bad).

THEN after I deleted the CVS directories and told Eclipse to 'refresh' so it 
would pick up that they are no longer considered to be part of a repository 
(yet) it didn't pick it up. I had to shutdown Eclipse and start it up again.

Joe
Comment 1 Michael Valenta CLA 2002-06-19 09:06:03 EDT
I am unable to reproduce this using the Navigator view. Could you give us more 
details as to the structure of the two projects involved and what directories 
where copied. Also, did you copy the files using one of the views in Eclipse 
(if so, which one: e.g. Navigator, Package Explorer) or did you copy them using 
an external tool?
Comment 2 Kevin McGuire CLA 2002-06-19 11:32:45 EDT
Marking bug P3 since we are using P2 and P1 to mark bugs we are seeking 
approval to fix for F4.  (Reporter sets severity, component team sets priority 
wrt. other work they have to do).
Comment 3 Joseph Molnar CLA 2002-06-19 11:43:38 EDT
The copying was done within the Navigator panel while inthe Resource 
Perspective.  To do the copy I right clicked on the project, choose copy and 
then right clicked on destination (which was in a separate project, and 
ultimatley was a separate repository, but in the same Navigator panel), choose 
to paste and that was it.  To be clear, it was with F3 rev of the tool and the 
copy was done using Eclipse, not an external tool.

Generally speaking(a fair amount of work to describe otherwise), the 'root' of 
the copy operation had two directories, within each of those there were 7 
directories immediatley underneath and in some of those there were a few other 
directories (so nested three or 4 deep and totaling close to 20 directories). 
Some directories were all lower-case, one or two were uppercase and a few 
started their name with an underscore.

The number of files was much larger, around 150 or so, of which one directory 
had a larger number of binary files (mainly .gif/.jpg/.psd).
Comment 4 Antonio D'souza CLA 2002-06-19 15:20:41 EDT
The problem can be reproduced if the target folder has not ben added to CVS yet.
In this situation, the foldwer that was pasted loses its CVS info as desired but
none of its children do.
Comment 5 Michael Valenta CLA 2002-06-19 16:24:23 EDT
Actually the folder that was pasted has it's CVS information as well. However, 
the folder is not decorated since it is not managed by it's parent.

The fix for this would be to change the condition in 
AddDeleteModeListener#handleOrphanedSubtree() to detect this situation and 
purge the CVS information. Although this change isn't too complicated, it is 
too late in the cycle to correct. A more thourough fix would also ensure that 
any new CVS meta-information that is added to a project's resources is mapped 
to the same repository.

Action for 2.0: Add to readme.
Comment 6 Michael Valenta CLA 2002-07-03 14:22:55 EDT
Changed title from "Copy bug (at least when CVS is involved)"
Comment 7 Michael Valenta CLA 2002-08-21 15:21:31 EDT
Should consider for 2.1
Comment 8 Michael Valenta CLA 2002-08-27 11:29:50 EDT
Fixed released to HEAD
Comment 9 Michael Valenta CLA 2002-10-04 13:02:37 EDT
*** Bug 24401 has been marked as a duplicate of this bug. ***