summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/vc/vc-hg.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/vc/vc-hg.el b/lisp/vc/vc-hg.el
index 48a7838684a..6ecf9fb41d7 100644
--- a/lisp/vc/vc-hg.el
+++ b/lisp/vc/vc-hg.el
@@ -578,7 +578,8 @@ 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" (unless (string-empty-p name) name))
+ (vc-hg-command nil 0 nil "update" (and (not (equal name ""))
+ name))
;; TODO: update *vc-change-log* buffer so can see @ if --graph
))