This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 14867 - CVS: Deleting folder should remove entry from cache as well as from "Entries" file.
Summary: CVS: Deleting folder should remove entry from cache as well as from "Entries"...
Status: CLOSED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: vcsgeneric (show other bugs)
Version: 3.x
Hardware: All All
: P4 blocker (vote)
Assignee: issues@obsolete
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-08-28 16:48 UTC by Jiri Kovalsky
Modified: 2003-07-01 13:04 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Kovalsky 2001-08-28 16:48:59 UTC
Build #1159a on Windows 2000/NT, Solaris 5.8, Red Hat Linux 6.2 (all JDK 1.3)

Description:
============
If user deletes arbitrary folder that has already been added into the
repository there should be deleted as well appropriate entry from cache
and "Entries" file. Now if folder is deleted it disappears from the explorer
for delay of 15 seconds and then is shown again although in fact it doesn't
exist but user can create another folder with the same name next to "cached"
one. This may be a little bit confusing.

Steps to reproduce:
===================
1. Mount already existing CVS filesystem with at least one [Up-to-date] file but
   not directly under the CVS FS's root node.
2. Delete parent directory of this file and you will see that deleted folder
   disappears for 15 seconds and then is shown again.
3. Now create "New Package" with the same name as deleted folder has. There will
   be two exactly the same folders in the explorer next to each other.

Note: This issue was created as copy of bug #8525 filed on vcscvs module.
=====

------- Additional Comments From Jiri Kovalsky 2000-12-08 07:07 PST -------

BUG also appears in version : FFJ20


------- Additional Comments From Martin Entlicher 2001-01-10 04:50 PST -------

Hmm, probably the best solution would be to attach a special command with the
delete action, that could provide some further cleanup i.e. "cvs release".


------- Additional Comments From Martin Entlicher 2001-02-08 08:26 PST -------

The deleted folder is not shown any more in the Explorer.
However the item in Entries still exist, this will be fixed in the future.


------- Additional Comments From Daniel Mladek 2001-02-10 03:55 PST -------

Martin, could you please specify more exactly in so far future it will be fixed?
Will it be ready to the NB 3.2 release or 3.3?


------- Additional Comments From Martin Entlicher 2001-02-12 07:02 PST -------

I would like to fix it for 3.2 release.


------- Additional Comments From Martin Entlicher 2001-02-23 04:54 PST -------

Copied the solution proposal from bug #9663:
I think, that there are two ways, how to solve this bug:
1) remove the whole folder and remove its entry in parent's CVS/Entries
2) remove only the folder content, but keep all CVS/* intact. This will result
in the folder's files being shown in the Explorer with [Needs Checkout] status.

IMHO the solution might be: ask the user which way of folder delete s/he want to
do and then perform either 1) or 2).
Is this solution acceptable ? Any comments ?



------- Additional Comments From Martin Entlicher 2001-02-23 04:54 PST -------

*** Issue 9663 has been marked as a duplicate of this issue. ***


------- Additional Comments From Martin Entlicher 2001-04-11 12:08 PDT -------

There has to be a way how to show a dialog for all deleted files at once. The
appropriate support needs to be done in openide.
Comment 1 Martin Entlicher 2001-09-25 16:12:47 UTC
Well, due to the fact, that delete actions come extra for each
file/folder deleted, I have chosen the first option by default. It's
not possible to reliably show a question dialog for all deleted files. 

All delete actions are cached, and if there is no more file to delete
in a next second, a specialized command is executed on all deleted
folders at once and removes the appropriate items from CVS/Entries.

Fixed in build 09/26.
Comment 2 Jiri Kovalsky 2001-10-10 12:21:36 UTC
Great. Verified in development build of NetBeans 3.3 #200110100100.
Comment 3 Quality Engineering 2003-07-01 13:04:38 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.