Function: vc-dav-state
vc-dav-state is a byte-compiled function defined in vc-dav.el.gz.
Signature
(vc-dav-state URL)
Documentation
Return the current version control state of URL.
For a list of possible values, see vc-state.
Source Code
;; Defined in /usr/src/emacs/lisp/vc/vc-dav.el.gz
(defun vc-dav-state (url)
"Return the current version control state of URL.
For a list of possible values, see `vc-state'."
;; Things we can support for WebDAV
;;
;; up-to-date - use lockdiscovery
;; edited - check for an active lock by us
;; USER - use lockdiscovery + owner
;;
;; These don't make sense for WebDAV
;; needs-patch
;; needs-merge
;; unlocked-changes
(let ((locks (url-dav-active-locks url)))
(cond
((null locks) 'up-to-date)
((assoc url locks)
;; SOMEBODY has a lock... let's find out who.
(setq locks (cdr (assoc url locks)))
(if (rassoc url-dav-lock-identifier locks)
;; _WE_ have a lock
'edited
(cdr (car locks)))))))