Function: vc-rcs-next-revision
vc-rcs-next-revision is a byte-compiled function defined in
vc-rcs.el.gz.
Signature
(vc-rcs-next-revision FILE REV)
Documentation
Return the revision number immediately following REV for FILE, or nil if there is no next revision. This default implementation works for MAJOR.MINOR-style revision numbers as used by RCS and CVS.
Source Code
;; Defined in /usr/src/emacs/lisp/vc/vc-rcs.el.gz
(defun vc-rcs-next-revision (file rev)
"Return the revision number immediately following REV for FILE,
or nil if there is no next revision. This default implementation
works for MAJOR.MINOR-style revision numbers as used by RCS
and CVS."
(when (not (string= rev (vc-working-revision file)))
(let ((branch (vc-rcs-branch-part rev))
(minor-num (string-to-number (vc-rcs-minor-part rev))))
(concat branch "." (number-to-string (1+ minor-num))))))