Function: vc-hg--assert-rev-on-current-branch

vc-hg--assert-rev-on-current-branch is a byte-compiled function defined in vc-hg.el.gz.

Signature

(vc-hg--assert-rev-on-current-branch REV)

Documentation

Assert that REV is on the current branch.

Source Code

;; Defined in /usr/src/emacs/lisp/vc/vc-hg.el.gz
(defun vc-hg--assert-rev-on-current-branch (rev)
  "Assert that REV is on the current branch."
  (with-temp-buffer
    (vc-hg-command t nil nil "log" "--limit=1"
                   (format "--rev=%s & ancestors(.)" rev)
                   "--template={node}")
    (when (bobp)
      (error "Revision %s is not on the current branch" rev))))