From 2c2f1c00accb7672bea7fa98d5314bfb11edfd7f Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Mon, 1 Jun 2026 09:51:08 +0100 Subject: [PATCH] ; * lisp/vc/vc-dir.el (vc-dir-update): Add an assertion. --- lisp/vc/vc-dir.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/vc/vc-dir.el b/lisp/vc/vc-dir.el index 98c69b48691..2cb56aac715 100644 --- a/lisp/vc/vc-dir.el +++ b/lisp/vc/vc-dir.el @@ -646,7 +646,8 @@ Also update some VC file properties from ENTRIES." (or (null next) (vc-dir-fileinfo->directory (ewoc-data next))))) (ewoc-delete vc-ewoc crt))) - (setq crt prev)))))) + (setq crt prev)))) + (cl-assert (null to-remove)))) ;; Update VC file properties. (pcase-dolist (`(,file ,state ,_extra) entries) (vc-file-setprop file 'vc-backend