Function: vc-cvs-checkout-model
vc-cvs-checkout-model is a byte-compiled function defined in
vc-cvs.el.gz.
Signature
(vc-cvs-checkout-model FILES)
Documentation
CVS-specific version of vc-checkout-model.
Source Code
;; Defined in /usr/src/emacs/lisp/vc/vc-cvs.el.gz
(defun vc-cvs-checkout-model (files)
"CVS-specific version of `vc-checkout-model'."
(if (getenv "CVSREAD")
'announce
(let* ((file (if (consp files) (car files) files))
(attrib (file-attributes file)))
(or (vc-file-getprop file 'vc-checkout-model)
(vc-file-setprop
file 'vc-checkout-model
(if (and attrib ;; don't check further if FILE doesn't exist
;; If the file is not writable (despite CVSREAD being
;; undefined), this is probably because the file is being
;; "watched" by other developers.
;; (We actually shouldn't trust this, but there is
;; no other way to learn this from CVS at the
;; moment (version 1.9).)
(string-match "r-..-..-." (file-attribute-modes attrib)))
'announce
'implicit))))))