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