GNU bug report logs -
#50258
Don't call (vc-find-backend-function backend 'merge) [svn/cvs/rcs]
Previous Next
Reported by: Dmitry Gutov <dgutov <at> yandex.ru>
Date: Sun, 29 Aug 2021 21:09:02 UTC
Severity: normal
Done: Dmitry Gutov <dgutov <at> yandex.ru>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Dmitry Gutov <dgutov <at> yandex.ru> writes:
> I don't really remember how branches worked in SVN, much less CVS or
> RCS to write this step by step.
Yeah, me neither. :-/
> 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.
This bug report was last modified 2 years and 332 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.