Make vc-hg-annotate-command async
There's no benefit in this running the process synchrounously, and it's annoying for it to block the Emacs UI. * lisp/vc/vc-hg.el (vc-hg-annotate-command): Run asynchronously (bug#63123).
This commit is contained in:
parent
5f79d821a0
commit
34ac7d9087
1 changed files with 1 additions and 1 deletions
|
@ -578,7 +578,7 @@ This requires hg 4.4 or later, for the \"-L\" option of \"hg log\"."
|
|||
(defun vc-hg-annotate-command (file buffer &optional revision)
|
||||
"Execute \"hg annotate\" on FILE, inserting the contents in BUFFER.
|
||||
Optional arg REVISION is a revision to annotate from."
|
||||
(apply #'vc-hg-command buffer 0 file "annotate" "-dq" "-n"
|
||||
(apply #'vc-hg-command buffer 'async file "annotate" "-dq" "-n"
|
||||
(append (vc-switches 'hg 'annotate)
|
||||
(if revision (list (concat "-r" revision))))))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue