emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/vc-hgcmd c6c8667 12/87: Don't pass abbreviated repo roo


From: Stefan Monnier
Subject: [elpa] externals/vc-hgcmd c6c8667 12/87: Don't pass abbreviated repo root dir to hg
Date: Sat, 5 Jun 2021 16:11:36 -0400 (EDT)

branch: externals/vc-hgcmd
commit c6c86671453cfa6102aaa62f8814543f3ef1ff21
Author: muffinmad <andreyk.mad@gmail.com>
Commit: muffinmad <andreyk.mad@gmail.com>

    Don't pass abbreviated repo root dir to hg
---
 vc-hgcmd.el | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/vc-hgcmd.el b/vc-hgcmd.el
index 13e83fe..df90df8 100644
--- a/vc-hgcmd.el
+++ b/vc-hgcmd.el
@@ -654,7 +654,11 @@ Insert 'Running command' and display buffer text if 
COMMAND"
 
 (defun vc-hgcmd-diff (files &optional rev1 rev2 buffer _async)
   "Place diff of FILES between REV1 and REV2 into BUFFER."
-  (let ((command (nconc (list "diff") (when rev1 (list "-r" rev1)) (when rev2 
(list "-r" rev2)) files)))
+  (let ((command (nconc
+                  (list "diff")
+                  (when rev1 (list "-r" rev1))
+                  (when rev2 (list "-r" rev2))
+                  (unless (equal files (list default-directory)) files))))
     (apply #'vc-hgcmd-command-output-buffer buffer command)))
 
 (defun vc-hgcmd-revision-completion-table (_files)



reply via email to

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