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 108288

Summary: Status not updated after reverting a deletion
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: proposed patch
additional patch

Description Padraig Obriain 2007-06-27 14:22:25 UTC
At project node, choose Revert Modifications and choose a changeset before a file was created. 
This will cause this file to be Locally Removed. It disappears from the prject view but is listed in Status output.
In Status window, right click on the file and invoke "Revert "Delete".
The file reappears in the project view but it status remain as "Locally Removed".
Comment 1 Padraig Obriain 2007-06-27 15:29:46 UTC
This is working correctly for me now. 
Comment 2 novakm 2008-02-05 14:19:59 UTC
I can reproduce described behavior very easily. After Revert Modifications, deleted files are not displayed in Status
window until I invoke Refresh status. And after Revert Deleted or Revert Modifications to the latest revision, those
files are still in the Status Window until I invoke Refresh Status again.

Product Version: NetBeans IDE Dev (Build 200802040003)
Java: 1.6.0_04; Java HotSpot(TM) Client VM 10.0-b19
System: Windows Vista version 6.0 running on x86; Cp1252; en_GB (nb)
Comment 3 Padraig Obriain 2008-02-07 14:24:02 UTC
This regression is caused by the change made for issue 123593. When I revert that change this problem no longer occurs.
Comment 4 Padraig Obriain 2008-02-07 14:46:22 UTC
Created attachment 56250 [details]
proposed patch
Comment 5 Padraig Obriain 2008-02-07 14:48:28 UTC
changeset:   66304:a4c1c81ea65b
tag:         tip
user:        padraigob@netbeans.org
date:        Thu Feb 07 14:45:37 2008 +0000
files:       mercurial/src/org/netbeans/modules/mercurial/ui/update/RevertModificationsAction.java
description:
108288: Undo change for issue #123593 as it causes this problem
Comment 6 Padraig Obriain 2008-02-07 15:17:35 UTC
Created attachment 56257 [details]
additional patch
Comment 7 Padraig Obriain 2008-02-07 15:18:15 UTC
changeset:   66343:7bb816d29ca0
tag:         tip
user:        padraigob@netbeans.org
date:        Thu Feb 07 15:15:10 2008 +0000
files:       mercurial/src/org/netbeans/modules/mercurial/ui/update/RevertModificationsAction.java
description:
108288: Fix typo in last commit