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 208355 - Mac&Hg: File name casing does not match between project view and on disk file name.
Summary: Mac&Hg: File name casing does not match between project view and on disk file...
Status: RESOLVED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Mercurial (show other bugs)
Version: 7.1
Hardware: PC Mac OS X
: P2 normal (vote)
Assignee: Ondrej Vrabec
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-13 16:21 UTC by hcker2000
Modified: 2012-04-14 09:42 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
netbeans info (232.62 KB, image/png)
2012-02-27 15:56 UTC, hcker2000
Details
Example of the issue (21.09 KB, image/png)
2012-03-06 15:44 UTC, hcker2000
Details

Note You need to log in before you can comment on or make changes to this bug.
Description hcker2000 2012-02-13 16:21:51 UTC
Project file names are not in sync with file names on disk.

Example:

"MY_Controller.php" - Projects Panel
"MY_controller.php" - On Disk

To replicate the issue simply make a new file using the project panel (my_example.php) and then rename the file in the project panel (MY_Example.php).

If you check the file name on disk you will notice it has not been changed.
Comment 1 Jaroslav Tulach 2012-02-24 15:19:43 UTC
Are you sure you are using 7.1?
Comment 2 hcker2000 2012-02-27 15:56:47 UTC
Created attachment 116144 [details]
netbeans info
Comment 3 hcker2000 2012-02-27 15:57:11 UTC
I have added a screen shot. I hope this helps.
Comment 4 hcker2000 2012-03-06 15:44:06 UTC
Created attachment 116405 [details]
Example of the issue

I have attached a new image showing at the top left the name in netbeans and then at the bottom right the name in finder.
Comment 5 Jaroslav Tulach 2012-04-10 09:09:57 UTC
OK, reproduced. Moreover I am getting "need to normalize" exception whenever I select the file that changed the case.
Comment 6 Jaroslav Tulach 2012-04-12 10:01:13 UTC
When I try it on a file which is not versioned at all, the rename works fine. However I've just tried on a file under Mercurial control to rename:

src/org/netbeans/AAa.java

to 

src/org/netbeans/aAa.java

after executing the handler.handle() method in BaseFileObj.rename, the name of the file on disk stayed AAa.java. What version control system (if any) the reporter is using?
Comment 7 Ondrej Vrabec 2012-04-12 15:11:52 UTC
right, mercurial does not actually rename the file on Windows or Mac.
hcker2000: are your files under mercurial (or any other version control system) support?
Comment 8 hcker2000 2012-04-12 15:16:06 UTC
(In reply to comment #7)
> right, mercurial does not actually rename the file on Windows or Mac.
> hcker2000: are your files under mercurial (or any other version control system)
> support?

I am using Mercurial as my VCS. It seems that I should still be able to rename the file even if its under Mercurial. I guess netbeans would just need to run mercurials rename on the file as well when changing the name?
Comment 9 Ondrej Vrabec 2012-04-13 10:00:15 UTC
fix: http://hg.netbeans.org/core-main/rev/ccc8dea440c5
Comment 10 Quality Engineering 2012-04-14 09:42:18 UTC
Integrated into 'main-golden', will be available in build *201204140400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/ccc8dea440c5
User: Ondrej Vrabec <ovrabec@netbeans.org>
Log: #208355 - Mac&Hg: File name casing does not match between project view and on disk file name.