1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-04-21 05:21:37 -07:00

lisp/vc/vc-hg.el: Don't pass empty string to hg update

* lisp/vc/vc-hg.el (vc-hg-retrieve-tag): Don't pass empty name to
`hg update` (bug#38216).
This commit is contained in:
Andrii Kolomoiets 2019-11-15 09:13:55 +01:00 committed by Lars Ingebrigtsen
parent 35ab18c03c
commit 3db1de0452

View file

@ -578,7 +578,7 @@ Optional arg REVISION is a revision to annotate from."
(defun vc-hg-retrieve-tag (dir name _update)
"Retrieve the version tagged by NAME of all registered files at or below DIR."
(let ((default-directory dir))
(vc-hg-command nil 0 nil "update" name)
(vc-hg-command nil 0 nil "update" (unless (string-empty-p name) name))
;; TODO: update *vc-change-log* buffer so can see @ if --graph
))