branch: externals/vc-hgcmd
commit c6c86671453cfa6102aaa62f8814543f3ef1ff21
Author: muffinmad <[email protected]>
Commit: muffinmad <[email protected]>
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)