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 118485

Summary: Plugin attempts to remove deleted files on every commit
Product: versioncontrol Reporter: hiddenbek <hiddenbek>
Component: MercurialAssignee: issues@versioncontrol <issues>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description hiddenbek 2007-10-11 03:18:52 UTC
I'm running on Ubuntu 7.04, using Java 1.6.0_02, and mercurial 0.9.4 built from source.  In order to ensure I was
starting from a fresh state, I extracted a new copy of the zipped NetBeans 6 beta1 JavaSE distribution and deleted my
~/.netbeans folder.  After launching, I installed the mercurial plugin from the update center, then restarted the IDE
when prompted.

I created a new Java appliction, accepting all the defaults.  I initialized the hg repository from the Versioning menu,
then did my initial commit.  Next I deleted Main.java from my project, and commited again. So far so good.

I added a new java class to my project, and attempted to commit again.  The commit dialog correctly listed NewClass.java
as being Locally Added, but still included Main.java as Locally Removed, despite the fact that it was deleted on the
previous commit.  Attempting to commit anyway gave me the error "unable to execute hg command".

If I exclude the file from the commit all works well, but it continues to show up in commit and status dialogs until I
delete ~/.netbeans/6.0Beta1/var/cache/mercurialcache and restart netbeans.  Things are fine after that, until I delete
another file.
Comment 1 Padraig Obriain 2007-10-11 10:31:14 UTC
I can reproduce this with the beta 1 version of the plugin but not with the version currently in CVS.
Comment 2 Padraig Obriain 2007-10-11 10:46:38 UTC

*** This issue has been marked as a duplicate of 117632 ***
Comment 3 hiddenbek 2007-10-12 13:36:51 UTC
It sure does, thanks.  Sorry about the dupe.