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.
the netbeans patch facility should delegate to the actual VCS if it has such functionality, e.g. 'hg imp --no-commit', otherwise to /usr/bin/patch if that exists, and only to a built-in impl as a last resort. see also 168246
Perhaps it's a separate issue, but analogously the VCS' diff command should be preferred to the built-in one. For example, 'hg di --git' is much better for exporting a diff from a Hg repository than the crude format the IDE generates.
lets handle it together in one issue...
one problem to discuss: in the diff generated by IDE there are also locally new files (not yet added) but 'hg diff' doesn't consider these files and skips them, right? Do we dare to skip them, too?
(In reply to comment #3) > there are also locally new files (not yet added) So 'hg add' them. (I wish you would anyway; it is a real pain to have to remember to run 'hg addrem' after using the IDE to create new files and then running external hg commands such as 'hg qnew -f'. 'hg rm' is already correctly run when files are deleted from the IDE, and 'hg ren' when they are moved.)