From 30e178e7cbf56ae8f97a0a465328eb744ca2758c Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Sun, 30 Nov 2025 18:31:37 +0000 Subject: [PATCH] * lisp/vc/vc.el (vc-push): Clear cached incoming revision. --- lisp/vc/vc.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el index 7447fab0888..afe3f4ebbda 100644 --- a/lisp/vc/vc.el +++ b/lisp/vc/vc.el @@ -4258,7 +4258,10 @@ It also signals an error in a Bazaar bound branch." (backend (car vc-fileset))) ;;; (files (cadr vc-fileset))) (if (vc-find-backend-function backend 'push) - (vc-call-backend backend 'push arg) + (progn (vc-call-backend backend 'push arg) + ;; FIXME: Ideally we would only clear out the + ;; REMOTE-LOCATION to which we are pushing. + (vc--repo-setprop 'vc-incoming-revision nil)) (user-error "VC push is unsupported for `%s'" backend)))) ;;;###autoload