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 129924 - When refactoring a package, "Exclude from Commit" is forgotten
Summary: When refactoring a package, "Exclude from Commit" is forgotten
Status: NEW
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Subversion (show other bugs)
Version: 6.x
Hardware: Macintosh Mac OS X
: P4 blocker (vote)
Assignee: issues@versioncontrol
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-12 15:53 UTC by Petr Dvorak
Modified: 2009-11-30 04:19 UTC (History)
0 users

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 Petr Dvorak 2008-03-12 15:53:02 UTC
Product Version: NetBeans IDE Dev (Build 200803111205)
Java: 1.5.0_13; Java HotSpot(TM) Client VM 1.5.0_13-119
System: Mac OS X version 10.5.2 running on i386; MacRoman; en_US (nb)

This might be more a refactoring issue...

1. Create a new java application, create a new class "NewClass" in the package xx.yy and import the project into the SVN repository (svn protocol).
2. Modify the NewClass file, invoke "Show changes" window. Exclude the file NewClass.java from the commit.
3. Now, go to the Files view, expand the nodes so that you can see "xx" node.
4. Right-click the "xx" node, choose Refactoring > Rename
-> Dialog shows up.
5. Fill in some new name (let's say "yz") and click Refactor.

The package is correctly refactored, but the newly created file "yz/NewClass.java" did not inherit the "Exclude from commit mark" (locally deleted file 
"xx/NewClass.java" is still excluded from commit, but locally created file "yz/NewClass.java" is not).

As your refactoring was concerning only the package, you probably would not expect that the "Exclude from commit" status is changed for some file 
included "in the package included in the refactored package". This might lead to undesired commits...
Comment 1 Tomas Stupka 2008-03-12 19:10:45 UTC
indeed, this creates an inconsistent state we should deal with it.
however, i see this as "Incorrect behavior that doesn't affect functionality" => p4
Comment 2 Petr Dvorak 2008-03-12 19:38:37 UTC
Agreed.