From 3db1de04527acee3a5cdd563c848582e85e0f77e Mon Sep 17 00:00:00 2001 From: Andrii Kolomoiets Date: Fri, 15 Nov 2019 09:13:55 +0100 Subject: [PATCH] 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). --- lisp/vc/vc-hg.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/vc/vc-hg.el b/lisp/vc/vc-hg.el index 16e5dd6db00..48a7838684a 100644 --- a/lisp/vc/vc-hg.el +++ b/lisp/vc/vc-hg.el @@ -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 )) -- 2.39.5