]> git.eshelyaron.com Git - emacs.git/commitdiff
lisp/vc/vc-hg.el: Don't pass empty string to hg update
authorAndrii Kolomoiets <andreyk.mad@gmail.com>
Fri, 15 Nov 2019 08:13:55 +0000 (09:13 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 15 Nov 2019 08:13:55 +0000 (09:13 +0100)
* lisp/vc/vc-hg.el (vc-hg-retrieve-tag): Don't pass empty name to
`hg update` (bug#38216).

lisp/vc/vc-hg.el

index 16e5dd6db001083b26b192453c99b3c6e8230f55..48a7838684a8cceb202b48b073b25896e4ac8c2b 100644 (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
     ))