Function: vc-hg-checkout
vc-hg-checkout is a byte-compiled function defined in vc-hg.el.gz.
Signature
(vc-hg-checkout FILE &optional REV)
Documentation
Retrieve a revision of FILE.
EDITABLE is ignored. REV is the revision to check out into WORKFILE.
Source Code
;; Defined in /usr/src/emacs/lisp/vc/vc-hg.el.gz
;; Modeled after the similar function in vc-bzr.el
(defun vc-hg-checkout (file &optional rev)
"Retrieve a revision of FILE.
EDITABLE is ignored.
REV is the revision to check out into WORKFILE."
(let ((coding-system-for-read 'binary)
(coding-system-for-write 'binary))
(with-current-buffer (or (get-file-buffer file) (current-buffer))
(if rev
(vc-hg-command t 0 file "cat" "-r" rev)
(vc-hg-command t 0 file "cat")))))