1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-05 19:31:02 -08:00
emacs/lisp/vc
Olivier Certner c8b9922e26 ediff: Merges with ancestor: Fix computation of hunks and proposed merge
Hunks were not computed correctly because the diff3 command was
invoked with arguments in an incorrect order.  The correct order is
the local file first, the base (or "ancestor") second and the other
file third.  This erroneous behavior had two consequences.  First, the
output of diff3 would change, since it tries to merge chunks according
to maximal matches between the second and first files, and the second
and third files.  Second, ediff, more precisely, `ediff-do-merge',
would consequently try to merge the reverse of the changes from the
base to the other file.

* lisp/vc/ediff-diff.el (ediff-setup-diff-regions3): In the arguments
to `ediff-exec-process', swap the other file with the ancestor (only
when merging with an ancestor).

(ediff-extract-diffs3): Match the hunk data for the ancestor and the
other file correctly.  The local variable `three-way-comp' indicates
this is a merge with ancestors when it is nil.

(Bug#59182)
2022-11-17 11:40:09 +02:00
..
add-log.el Merge from origin/emacs-28 2022-09-21 10:25:06 +02:00
compare-w.el
cvs-status.el
diff-mode.el ; Use US spelling docstring 2022-09-11 13:12:39 +02:00
diff.el
ediff-diff.el ediff: Merges with ancestor: Fix computation of hunks and proposed merge 2022-11-17 11:40:09 +02:00
ediff-help.el
ediff-hook.el
ediff-init.el
ediff-merg.el
ediff-mult.el
ediff-ptch.el
ediff-util.el
ediff-vers.el
ediff-wind.el Delete many items obsolete since 24.3 2022-09-09 11:27:30 +02:00
ediff.el
emerge.el
log-edit.el Add log-edit-summary-separator face (bug#58092) 2022-09-26 17:01:12 +03:00
log-view.el Add a VC command to prepare patches 2022-10-08 11:51:38 +02:00
pcvs-defs.el
pcvs-info.el
pcvs-parse.el
pcvs-util.el Delete many items obsolete since 24.3 2022-09-09 11:27:30 +02:00
pcvs.el
smerge-mode.el Remove redundant library installation instructions 2022-11-11 04:29:29 +01:00
vc-annotate.el
vc-bzr.el Immediately check out the right branch or revision 2022-10-23 18:04:55 +02:00
vc-cvs.el ; * lisp/vc/vc-cvs.el (vc-cvs-clone): Remove function 2022-10-12 17:11:21 +02:00
vc-dav.el
vc-dir.el Tweak binding of `+' in vc-dir 2022-09-24 15:19:03 +02:00
vc-dispatcher.el vc-filter-command-function: Abbreviate default value 2022-09-26 15:15:02 -07:00
vc-filewise.el
vc-git.el vc-git: Ensure git doesn't try to colorize stashes 2022-11-12 20:34:50 +01:00
vc-hg.el Merge remote-tracking branch 'origin/master' into feature/package+vc 2022-10-30 18:45:37 +01:00
vc-hooks.el Add vc-edit-next-command 2022-09-30 09:06:08 -07:00
vc-rcs.el
vc-sccs.el
vc-src.el
vc-svn.el Merge branch 'feature/package+vc' 2022-11-04 18:57:45 +01:00
vc.el ; * lisp/*.el: Fix typos in docstrings 2022-11-17 08:48:02 +01:00