bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#50258: Don't call (vc-find-backend-function backend 'merge) [svn/cvs


From: Dmitry Gutov
Subject: bug#50258: Don't call (vc-find-backend-function backend 'merge) [svn/cvs/rcs]
Date: Thu, 25 Aug 2022 01:16:47 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1

On 23.08.2022 13:38, Lars Ingebrigtsen wrote:
Maybe testing is not even necessary: the change I'm proposing seems
like a no-brainer, it just removes the requirement for the 'merge'
backend methods to be defined (in per-file backends). No code uses
them directly anyway.

diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el
index d3e53858c1..3274f1ec9d 100644
--- a/lisp/vc/vc.el
+++ b/lisp/vc/vc.el
@@ -2294,7 +2294,7 @@ vc-merge
       ((vc-find-backend-function backend 'merge-branch)
        (vc-call-backend backend 'merge-branch))
       ;; Otherwise, do a per-file merge.

-     ((vc-find-backend-function backend 'merge)
+     ((vc-find-backend-function backend 'merge-file)
        (vc-buffer-sync)
        (dolist (file files)
        (let* ((state (vc-state file))
I think you should just go ahead and push -- if this turns out to be a
problem in svn/cvs/rcs (which seems unlikely), somebody that uses those
will probably file a bug report in a few years.

Makes sense, pushed. Thanks.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]