; Fix last change.

This commit is contained in:
Sean Whitton 2026-06-10 13:37:57 +01:00
parent cd84bd6a0c
commit 9cad2da66e

View file

@ -1275,10 +1275,10 @@ that file."
;; FIXME: Warning: UGLY HACK. The CVS backend caches the state
;; info, this forces the backend to update it.
(vc-call-backend vc-dir-backend 'registered fname))
(let ((default-directory def-dir)
(state (vc-call-backend vc-dir-backend 'state fname-short))
(extra (vc-call-backend vc-dir-backend
'status-fileinfo-extra fname-short)))
(let* ((default-directory def-dir)
(state (vc-call-backend vc-dir-backend 'state fname-short))
(extra (vc-call-backend vc-dir-backend
'status-fileinfo-extra fname-short)))
;; Ensure we return a nil state if the file does not exist and is
;; not tracked so that it disappears from VC-Dir (bug#81191).
(if (and (eq state 'up-to-date) (not (file-exists-p fname)))