Function: ediff-vc-latest-version

ediff-vc-latest-version is a byte-compiled function defined in ediff-vers.el.gz.

Signature

(ediff-vc-latest-version FILE)

Documentation

Return the version level of the latest version of FILE in repository.

Source Code

;; Defined in /usr/src/emacs/lisp/vc/ediff-vers.el.gz
  (require 'vc-hooks)) ;; for vc-call macro


(defun ediff-vc-latest-version (file)
  "Return the version level of the latest version of FILE in repository."
  (if (fboundp 'vc-latest-version)
      (vc-latest-version file)
    (or (vc-file-getprop file 'vc-latest-revision)
	(cond ((vc-backend file)
	       (vc-call state file)
	       (vc-file-getprop file 'vc-latest-revision))
	      (t (error "File %s is not under version control" file))))
    ))