Bug 169288 - add support for external and vcs diff/patch functionality
add support for external and vcs diff/patch functionality
Status: NEW
Product: utilities
Classification: Unclassified
Component: Diff
6.x
All All
: P3 (vote)
: TBD
Assigned To: Tomas Stupka
diff-issues@utilities
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-07-28 09:18 UTC by Tomas Stupka
Modified: 2010-10-07 15:17 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Stupka 2009-07-28 09:18:41 UTC
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
Comment 1 Jesse Glick 2009-07-28 13:55:15 UTC
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.
Comment 2 Tomas Stupka 2009-07-28 14:14:23 UTC
lets handle it together in one issue...
Comment 3 Ondrej Vrabec 2010-02-26 07:24:51 UTC
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?
Comment 4 Jesse Glick 2010-02-26 10:05:49 UTC
(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.)


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo