Function: vc-hg-merge-branch

vc-hg-merge-branch is a byte-compiled function defined in vc-hg.el.gz.

Signature

(vc-hg-merge-branch)

Documentation

Prompt for revision and merge it into working directory.

This runs the command "hg merge".

Source Code

;; Defined in /usr/src/emacs/lisp/vc/vc-hg.el.gz
(defun vc-hg-merge-branch ()
  "Prompt for revision and merge it into working directory.
This runs the command \"hg merge\"."
  (let ((buffer (vc-hg--async-buffer))
        (branch (vc-read-revision "Revision to merge: ")))
    (apply #'vc-hg--async-command buffer
           (append '("--config" "ui.report_untrusted=0" "merge")
                   (and (not (string-empty-p branch)) (list branch))))
    (with-current-buffer buffer
      (vc-run-delayed
        (vc-compilation-mode 'hg)))
    (vc-set-async-update buffer)))