Function: vc-rcs-latest-on-branch-p
vc-rcs-latest-on-branch-p is a byte-compiled function defined in
vc-rcs.el.gz.
Signature
(vc-rcs-latest-on-branch-p FILE &optional VERSION)
Documentation
Return non-nil if workfile version of FILE is the latest on its branch.
When VERSION is given, perform check for that version.
Source Code
;; Defined in /usr/src/emacs/lisp/vc/vc-rcs.el.gz
(defun vc-rcs-latest-on-branch-p (file &optional version)
"Return non-nil if workfile version of FILE is the latest on its branch.
When VERSION is given, perform check for that version."
(unless version (setq version (vc-working-revision file)))
(with-temp-buffer
(string= version
(if (vc-rcs-trunk-p version)
(progn
;; Compare VERSION to the head version number.
(vc-insert-file (vc-master-name file) "^[0-9]")
(vc-parse-buffer "^head[ \t\n]+\\([^;]+\\);" 1))
;; If we are not on the trunk, we need to examine the
;; whole current branch.
(vc-insert-file (vc-master-name file) "^desc")
(vc-rcs-find-most-recent-rev (vc-rcs-branch-part version))))))