diff options
| author | Andrii Kolomoiets | 2019-11-15 09:13:55 +0100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2019-11-15 09:13:55 +0100 |
| commit | 3db1de04527acee3a5cdd563c848582e85e0f77e (patch) | |
| tree | eb8792e4ca176906a50691182f741148f5b9a959 | |
| parent | 35ab18c03cf2ec5f7f1f8c511d656cd96f24d007 (diff) | |
| download | emacs-3db1de04527acee3a5cdd563c848582e85e0f77e.tar.gz emacs-3db1de04527acee3a5cdd563c848582e85e0f77e.zip | |
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).
| -rw-r--r-- | lisp/vc/vc-hg.el | 2 |
1 files changed, 1 insertions, 1 deletions
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." | |||
| 578 | (defun vc-hg-retrieve-tag (dir name _update) | 578 | (defun vc-hg-retrieve-tag (dir name _update) |
| 579 | "Retrieve the version tagged by NAME of all registered files at or below DIR." | 579 | "Retrieve the version tagged by NAME of all registered files at or below DIR." |
| 580 | (let ((default-directory dir)) | 580 | (let ((default-directory dir)) |
| 581 | (vc-hg-command nil 0 nil "update" name) | 581 | (vc-hg-command nil 0 nil "update" (unless (string-empty-p name) name)) |
| 582 | ;; TODO: update *vc-change-log* buffer so can see @ if --graph | 582 | ;; TODO: update *vc-change-log* buffer so can see @ if --graph |
| 583 | )) | 583 | )) |
| 584 | 584 | ||