cornercorner
FeaturesPluginsDocs & SupportCommunityPartners

Bug 102717 - Moving LocallyAdded file not permitted
: Moving LocallyAdded file not permitted
Status: RESOLVED FIXED
: versioncontrol
Mercurial
: 6.1
: Sun All
: P3 (vote)
: 6.1
Assigned To:
:
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2007-04-27 10:12 by
Modified: 2008-01-03 09:40 (History)
Issue Type: DEFECT
:


Attachments
Patch for this bug (2.82 KB, patch)
2007-04-27 10:48, Padraig Obriain
Details | Diff
proposed patch (1.11 KB, patch)
2007-10-24 16:33, Padraig Obriain
Details | Diff


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2007-04-27 10:12:57
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 From 2007-04-27 10:48:26 -------
Created an attachment (id=41815) [details]
Patch for this bug
------- Comment #2 From 2007-04-27 10:50:23 -------
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 From 2007-05-02 11:29:20 -------
Will fix in rev 1.1 by doing the hg rm -f on the locally added file before the
move completes.
------- Comment #4 From 2007-05-08 12:13:10 -------
Patch committed.
------- Comment #5 From 2007-10-19 16:14:29 -------
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 From 2007-10-24 16:14:15 -------
The rework on Rename has caused this regression.
------- Comment #7 From 2007-10-24 16:33:25 -------
Created an attachment (id=51598) [details]
proposed patch
------- Comment #8 From 2007-10-24 16:39:10 -------
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