* lisp/vc/vc-dispatcher.el (vc-finish-logentry): Move call to
vc-buffer-sync-fileset from here ...
* lisp/vc/vc.el (vc-checkin): ... to here, and conditionalize so
as not to call when committing a patch. Also fix comment.
(cherry picked from commit
45d148680367b73fc19d511b4abe5a4bb961ebc2)
;; Check and record the comment, if any.
(unless nocomment
(run-hooks 'vc-logentry-check-hook))
- ;; Must pass NOT-ESSENTIAL non-nil because we later call
- ;; `vc-resynch-buffer' with NOQUERY non-nil.
- (vc-buffer-sync-fileset (list log-edit-vc-backend vc-log-fileset))
(unless vc-log-operation
(error "No log operation is pending"))
;; RCS 5.7 gripes about whitespace-only comments too.
(unless (and comment (string-match "[^\t\n ]" comment))
(setq comment "*** empty log message ***"))
+ (unless patch-string
+ ;; Must not pass non-nil NOT-ESSENTIAL because we will shortly
+ ;; call (in `vc-finish-logentry') `vc-resynch-buffer' with its
+ ;; NOQUERY parameter non-nil.
+ (vc-buffer-sync-fileset (list backend files)))
(when register (vc-register (list backend register)))
(cl-labels ((do-it ()
;; We used to change buffers to get local value of