mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-30 08:09:04 +00:00
(vc-name): Force correct computation of the value in case it is missing.
This commit is contained in:
parent
42ac0ae5f3
commit
64341022ab
@ -5,7 +5,7 @@
|
||||
;; Author: FSF (see vc.el for full credits)
|
||||
;; Maintainer: Andre Spiegel <spiegel@gnu.org>
|
||||
|
||||
;; $Id: vc-hooks.el,v 1.118 2000/09/06 10:41:10 gerd Exp $
|
||||
;; $Id: vc-hooks.el,v 1.119 2000/09/12 13:00:30 fx Exp $
|
||||
|
||||
;; This file is part of GNU Emacs.
|
||||
|
||||
@ -289,7 +289,10 @@ If the file is not registered, or the master name is not known, return nil."
|
||||
;; TODO: This should ultimately become obsolete, at least up here
|
||||
;; in vc-hooks.
|
||||
(or (vc-file-getprop file 'vc-name)
|
||||
(if (vc-backend file)
|
||||
;; force computation of the property by calling
|
||||
;; vc-BACKEND-registered explicitly
|
||||
(if (and (vc-backend file)
|
||||
(vc-call-backend (vc-backend file) 'registered file))
|
||||
(vc-file-getprop file 'vc-name))))
|
||||
|
||||
(defun vc-checkout-model (file)
|
||||
|
Loading…
Reference in New Issue
Block a user