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 163747 - deleting packages not working
Summary: deleting packages not working
Status: RESOLVED DUPLICATE of bug 156529
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Subversion (show other bugs)
Version: 6.x
Hardware: All Windows Vista
: P3 blocker (vote)
Assignee: issues@versioncontrol
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-27 12:47 UTC by nagyz
Modified: 2009-04-30 09:43 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 nagyz 2009-04-27 12:47:52 UTC
hey there.

if I try to delete a package, it wont work. I understand that to fully delete the directory first I must do an svn
commit, however, when I check the svn dif from netbeans, it's empty.

not disappearing can be explained this way, but svn diff being empty can not, so it's definitely a bug.

the ui can be worked around like hiding the deleted package until commit.
Comment 1 Ondrej Vrabec 2009-04-28 07:43:38 UTC
What do you mean by 'svn diff being empty'? Do you mean that when you select Subversion->Diff from popup menu, you can't
see package files as 'Deleted'?
Could you make a screenshot?
Comment 2 nagyz 2009-04-28 11:08:30 UTC
sure.

first, I created a new project: http://nefty.hu/~nagyz/netbeans/basic_project_creation.jpg

then I created a new package, and committed everything into an svn repository:
http://nefty.hu/~nagyz/netbeans/svn_first_import.jpg

then I tried to delete the package:
http://nefty.hu/~nagyz/netbeans/newpackage_deletion.jpg

then this is what I ended up with after hitting the OK:
http://nefty.hu/~nagyz/netbeans/after_package_deletion.jpg

so the package is there, still, and cannot be deleted from the IDE.

if you need anything, let me know :)
Comment 3 Ondrej Vrabec 2009-04-28 12:00:23 UTC
Does the svn diff shows anything if you invoke 'svn remove newpackage' in command line? I think it would not show
anything either.

You are however right that IDE does not schedule a package removal (does not call svn remove for the package itself), it
just deletes its content. I thing you can bypass this by deleting the package in Files view.
There is another issue for this: see #156529

Let me know if #156529 is what you would expect.
Comment 4 nagyz 2009-04-28 12:48:32 UTC
interesting.

the deletion from the "files" tab went fine. however, checking subversion->diff showed nothing.
but when I select subversion->commit, I can see it will remove the directory.

so it's almost the expected behaviour :)

svn diff showes nothing at the command line, so I guess when I delete the package from the files tab it does not really
delete it (it's still on disk), just notes that it should do that the next time I do a commit; and subversion->diff
works the same as "svn diff", while on svn commit, svn diff is merged with the "upcoming deletion notes" :)
Comment 5 Ondrej Vrabec 2009-04-29 17:39:15 UTC
Can I close this one? You can follow the progress of this in #156529
Comment 6 nagyz 2009-04-30 09:34:18 UTC
sure, close it if it's the same bug :-)
Comment 7 Ondrej Vrabec 2009-04-30 09:43:21 UTC

*** This issue has been marked as a duplicate of 156529 ***