Function: vc-mtn-state
vc-mtn-state is a byte-compiled function defined in vc-mtn.el.gz.
Signature
(vc-mtn-state FILE)
Source Code
;; Defined in /usr/src/emacs/lisp/obsolete/vc-mtn.el.gz
(defun vc-mtn-state (file)
;; If `mtn' fails or returns status>0, or if the search files, just
;; return nil.
(ignore-errors
(with-temp-buffer
(vc-mtn-command t 0 file "status")
(goto-char (point-min))
(re-search-forward
"^ \\(?:\\(patched\\)\\|\\(added\\) \\(?:.*\\)\\)\\|no changes$")
(cond ((match-end 1) 'edited)
((match-end 2) 'added)
(t 'up-to-date)))))