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 102717

Summary: Moving LocallyAdded file not permitted
Product: versioncontrol Reporter: Padraig Obriain <padraigob>
Component: MercurialAssignee: issues@versioncontrol <issues>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: Sun   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: Patch for this bug
proposed patch

Description Padraig Obriain 2007-04-27 10:12:57 UTC
In the mercurial plugin we do not permit the moving of a Locally Added file.
We should be able to do hg rm -f on that file and so allow the move.
Comment 1 Padraig Obriain 2007-04-27 10:48:26 UTC
Created attachment 41815 [details]
Patch for this bug
Comment 2 Padraig Obriain 2007-04-27 10:50:23 UTC
If the from file is LocallyAdded we do hg remove -f on it and do hg add on the
to file; otherwisae we call hg rename -A
Comment 3 John Rice 2007-05-02 11:29:20 UTC
Will fix in rev 1.1 by doing the hg rm -f on the locally added file before the
move completes.
Comment 4 Padraig Obriain 2007-05-08 12:13:10 UTC
Patch committed.
Comment 5 John Rice 2007-10-19 16:14:29 UTC
Seeing different behavior - the rename fails and there is an Output error. You can commit the NewFile but the status in
the Project view does not get updated until you go and add another file.
Comment 6 Padraig Obriain 2007-10-24 16:14:15 UTC
The rework on Rename has caused this regression.
Comment 7 Padraig Obriain 2007-10-24 16:33:25 UTC
Created attachment 51598 [details]
proposed patch
Comment 8 Padraig Obriain 2007-10-24 16:39:10 UTC
IDE:-------------------------------------------------
IDE: [10/24/07 4:38 PM] Committing started
Checking in MercurialInterceptor.java;
/shared/data/ccvs/repository/versioncontrol/mercurial/src/org/netbeans/modules/mercurial/MercurialInterceptor.java,v 
<--  MercurialInterceptor.java
new revision: 1.10; previous revision: 1.9
done
IDE: [10/24/07 4:38 PM] Committing finished