Function: majutsu-jj-revision-p

majutsu-jj-revision-p is a natively compiled function defined in majutsu-jj.el.

Signature

(majutsu-jj-revision-p REV)

Documentation

Return non-nil if REV names an existing JJ revision.

Uses jj log -r REV -G -T self.contained_in("REV") to verify.

Source Code

;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-jj.el
(defun majutsu-jj-revision-p (rev)
  "Return non-nil if REV names an existing JJ revision.
Uses `jj log -r REV -G -T self.contained_in(\"REV\")' to verify."
  (when (and rev (not (string-empty-p rev)))
    (let ((output (majutsu-jj-string "log" "-r" rev "-G" "-T"
                                     (majutsu-tpl `[:method [:self] :contained_in ,rev]))))
      (string= output "true"))))