Function: vc-jj-revision-completion-table
vc-jj-revision-completion-table is a natively compiled function
defined in vc-jj.el.
Signature
(vc-jj-revision-completion-table FILES)
Documentation
Return a completion table for existing revisions of FILES.
Source Code
;; Defined in /nix/store/j1ql1qsv99iszr5pqf5fk9yfcl5pq4nv-emacs-packages-deps/share/emacs/site-lisp/elpa/vc-jj-0.5/vc-jj.el
(defun vc-jj-revision-completion-table (files)
"Return a completion table for existing revisions of FILES."
(let* ((revisions
(mapcar
;; Boldly assuming that jj's change ids won't suddenly change length
(lambda (line) (list (substring line 0 31) (substring line 32)))
(apply #'vc-jj--process-lines "log" "--no-graph"
"-T" "self.change_id() ++ self.description().first_line() ++ \"\\n\"" "--" files))))
(lambda (string pred action)
(if (eq action 'metadata)
`(metadata . ((display-sort-function . ,#'identity)
(annotation-function . ,#'vc-jj--revision-annotation-function)))
(complete-with-action action revisions string pred)))))