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.
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.
Patching in undoable now, I consider this to be an RFE.
It would be nice to have Undo available. In the meantime, please use Local History feature to rollback patched files to their original state.