From: Stefan Monnier Date: Fri, 19 Jan 2018 01:11:34 +0000 (-0500) Subject: * lisp/vc/vc-hg.el, lisp/vc/vc-git.el: Flush the 'vc-functions' cache. X-Git-Tag: emacs-27.0.90~5858 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=97fc87a3924c8b51e90b7d359cc585cbfa972e58;p=emacs.git * lisp/vc/vc-hg.el, lisp/vc/vc-git.el: Flush the 'vc-functions' cache. --- diff --git a/lisp/vc/vc-git.el b/lisp/vc/vc-git.el index 626cf6165a3..2d6ca1386a3 100644 --- a/lisp/vc/vc-git.el +++ b/lisp/vc/vc-git.el @@ -183,6 +183,10 @@ Should be consistent with the Git config value i18n.logOutputEncoding." ;; History of Git commands. (defvar vc-git-history nil) +;; Clear up the cache to force vc-call to check again and discover +;; new functions when we reload this file. +(put 'Git 'vc-functions nil) + ;;; BACKEND PROPERTIES (defun vc-git-revision-granularity () 'repository) diff --git a/lisp/vc/vc-hg.el b/lisp/vc/vc-hg.el index 08b1be8f6d3..ad817fd9b9c 100644 --- a/lisp/vc/vc-hg.el +++ b/lisp/vc/vc-hg.el @@ -175,6 +175,10 @@ highlighting the Log View buffer." :version "24.5") +;; Clear up the cache to force vc-call to check again and discover +;; new functions when we reload this file. +(put 'Hg 'vc-functions nil) + ;;; Properties of the backend (defvar vc-hg-history nil)