* lisp/vc/vc.el (vc-default-checkin-patch):
Call vc-revert-file on buffer-file-name (vc-backend failed on
relative name sometimes). Delete the tmp dir after copying all
files back, not just the first one. Bug#52349,
https://lists.gnu.org/archive/html/emacs-devel/2022-10/msg01446.html.
(progn
(dolist (f files)
(with-current-buffer (find-file-noselect f)
- (vc-revert-file f)))
+ (vc-revert-file buffer-file-name)))
(with-temp-buffer
;; Trying to support CVS too. Assuming that vc-diff
;; there will usually the diff root in default-directory.
(expand-file-name f)
t)
(with-current-buffer (get-file-buffer f)
- (revert-buffer t t t))
- (delete-directory tmpdir t)))))
+ (revert-buffer t t t)))
+ (delete-directory tmpdir t))))
;;; Additional entry points for examining version histories