Function: vc-rcs-merge-file
vc-rcs-merge-file is a byte-compiled function defined in vc-rcs.el.gz.
Signature
(vc-rcs-merge-file FILE)
Documentation
Accept a file merge request, prompting for revisions.
Source Code
;; Defined in /usr/src/emacs/lisp/vc/vc-rcs.el.gz
(defun vc-rcs-merge-file (file)
"Accept a file merge request, prompting for revisions."
(let* ((first-revision
(vc-read-revision
(concat "Merge " file " from branch or revision: ")
(list file)
'RCS))
second-revision)
(cond
((string= first-revision "")
(error "A starting RCS revision is required"))
(t
(if (not (vc-rcs-branch-p first-revision))
(setq second-revision
(vc-read-revision
"Second RCS revision: "
(list file) 'RCS nil
(concat (vc-rcs-branch-part first-revision) ".")))
;; We want to merge an entire branch. Set revisions
;; accordingly, so that vc-rcs-merge understands us.
(setq second-revision first-revision)
;; first-revision must be the starting point of the branch
(setq first-revision (vc-rcs-branch-part first-revision)))))
(vc-rcs-merge file first-revision second-revision)))