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 113508 - Refactoring of Locally New files doesn't work
Summary: Refactoring of Locally New files doesn't work
Status: VERIFIED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Subversion (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: issues@versioncontrol
URL:
Keywords:
: 112384 115142 119718 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-08-22 14:48 UTC by novakm
Modified: 2007-10-23 08:15 UTC (History)
3 users (show)

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 novakm 2007-08-22 14:48:28 UTC
Let's assume you have versioned project with following structure (a and b are packages, everything was already comitted):
|
+---a
|
+---b

Now create new file  fl.java in package a. Do not commit it, but try to move it to package b. Move class dialog appears,
confirm it. Nothing happens and fl.java remains in package a.

This issue is probably related to issue #112070.

Another thing is exception thrown if you select package a (in files view), invoke cut, select package b and invoke
paste. When you push Refactor and it is processing the Locally New file, similar exception is thrown:

org.tigris.subversion.svnclientadapter.commandline.CmdLineException: svn:
'D:\tmp\work\w1187787216761\JavaApp\src\a\b\c\NewClass2.java' is not under version control
	at org.tigris.subversion.svnclientadapter.commandline.CommandLine.execString(CommandLine.java:195)
	at org.tigris.subversion.svnclientadapter.commandline.SvnCommandLine.move(SvnCommandLine.java:580)
 ...

-----
Product Version: NetBeans IDE Dev (Build 070822)
Java: 1.5.0_12; Java HotSpot(TM) Client VM 1.5.0_12-b04
Comment 1 Peter Pis 2007-08-22 15:15:00 UTC
Jardo, can it be related with the issue you've fixed recently (#112070)?
Comment 2 Jaroslav Tulach 2007-08-23 08:48:22 UTC
A necessary condition to simulate issue 112070 is to move a folder. So I guess this issue is not related to it.

Btw. I can simulate this problem on my svn repository. When I select a file under svn control, copy it to clipboard, 
select its folder, paste the file there (new file with _1.ext is created) and then I try to rename the file. Then I 
get the "is not under version control" exception. The only workaround I know is to rename the file on disk using "mv".
Comment 3 novakm 2007-08-23 10:33:42 UTC
Well In the second part of the first description I described moving the folder. I tried older build (200708070000) and
refactoring of new files worked fine there so I thought it can be related to #112070 as it was fixing similar problem. 

If you try to copy/move folder that doesn't contain new file (no files at all or commited files), the exception is not
thrown). If it contains a new folder, it works as well. So the problem occurs only when there is new file only, therefor
I thought it is related. If you are sure it isn't, should I file different issue for moving/copying folder with new file?
Comment 4 Tomas Stupka 2007-09-03 15:17:47 UTC
*** Issue 112384 has been marked as a duplicate of this issue. ***
Comment 5 Tomas Stupka 2007-09-04 13:06:44 UTC
fixed in trunk

Checking in FilesystemHandler.java;
/cvs/subversion/main/src/org/netbeans/modules/subversion/FilesystemHandler.java,v  <--  FilesystemHandler.java
new revision: 1.55; previous revision: 1.54
done
Comment 6 Peter Pis 2007-09-04 13:22:20 UTC
Fix verified in private build. Please integrate it also into "release60-beta1" branch. Thanks.
Comment 7 Maros Sandor 2007-09-05 13:16:31 UTC
Semantics of the fix looks OK to me.
Comment 8 Tomas Stupka 2007-09-05 13:50:27 UTC
fixed in release60-beta1

Checking in FilesystemHandler.java;
/cvs/subversion/main/src/org/netbeans/modules/subversion/FilesystemHandler.java,v  <--  FilesystemHandler.java
new revision: 1.54.2.1; previous revision: 1.54
Comment 9 novakm 2007-09-06 13:46:31 UTC
Verified.
Comment 10 Tomas Stupka 2007-09-20 08:52:12 UTC
*** Issue 115142 has been marked as a duplicate of this issue. ***
Comment 11 Tomas Stupka 2007-10-23 08:15:32 UTC
*** Issue 119718 has been marked as a duplicate of this issue. ***