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 75973

Summary: [Undo] When patching source with external diff file the undo isn't available
Product: utilities Reporter: Bernard Halas <bernard_halas>
Component: DiffAssignee: Ondrej Vrabec <ovrabec>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 5.x   
Hardware: PC   
OS: Linux   
Issue Type: ENHANCEMENT Exception Reporter:

Description Bernard Halas 2006-05-05 09:58:26 UTC
Steps to reproduce:
======================================================
1) create a file in project (i. e. "A.java")with just one symbol: "A" and left a
new line at the end of the file. the file will look like this:
--------beginning of the file----------
A

--------end of the file----------------
2) create a file named patch.diff with this content:
--------beginning of the file----------
1c1
< A
---
> B
--------end of the file----------------
3) in the project tree view right click on the file and select "Tools" -> "Apply
Diff Patch"
4) select file patch.diff that you've created in previous steps
5) select "No"
6) the patch will change symbol "A" to symbol "B" in the source file
Problem: the "Undo function" isn't available to undo patching.
Comment 1 Maros Sandor 2007-01-09 16:36:08 UTC
Patching in undoable now, I consider this to be an RFE.
Comment 2 Maros Sandor 2008-04-08 13:11:05 UTC
It would be nice to have Undo available. In the meantime, please use Local History feature to rollback patched files to
their original state.