Function: vc-jj-checkout
vc-jj-checkout is a natively compiled function defined in vc-jj.el.
Signature
(vc-jj-checkout FILE &optional REV)
Documentation
Restore the contents of FILE to be the same as in change REV.
If REV is not specified, revert the file as with vc-jj-revert.
Source Code
;; Defined in /nix/store/j1ql1qsv99iszr5pqf5fk9yfcl5pq4nv-emacs-packages-deps/share/emacs/site-lisp/elpa/vc-jj-0.5/vc-jj.el
;;;; checkout
(defun vc-jj-checkout (file &optional rev)
"Restore the contents of FILE to be the same as in change REV.
If REV is not specified, revert the file as with `vc-jj-revert'."
;; TODO: check that this does the right thing: if REV is not
;; specified, should we revert or leave FILE unchanged?
(let ((args (append (and rev (list "--from" rev)))))
(apply #'vc-jj--command-dispatched nil 0 file "restore" args)))