emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Lars Ingebrigtsen
Subject: master 3db1de0: lisp/vc/vc-hg.el: Don't pass empty string to hg update
Date: Fri, 15 Nov 2019 03:14:05 -0500 (EST)

branch: master
commit 3db1de04527acee3a5cdd563c848582e85e0f77e
Author: Andrii Kolomoiets <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>

    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 16e5dd6..48a7838 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
     ))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]