]> git.eshelyaron.com Git - emacs.git/commitdiff
Avoid using subr-x function
authorLars Ingebrigtsen <larsi@gnus.org>
Fri, 15 Nov 2019 09:04:23 +0000 (10:04 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 15 Nov 2019 09:05:39 +0000 (10:05 +0100)
* lisp/vc/vc-hg.el (vc-hg-retrieve-tag): Avoid using subr-x
function (bug#38216).

lisp/vc/vc-hg.el

index 48a7838684a8cceb202b48b073b25896e4ac8c2b..6ecf9fb41d7e52f87e16536f5c7ec31d4262cd5a 100644 (file)
@@ -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
     ))