From 8400766b43ef83768b05e71f13c79ea237e21ca8 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Fri, 29 Nov 2019 16:02:33 +0200 Subject: [PATCH] Support showing one revision with Mercurial * lisp/vc/vc-hg.el (vc-hg-print-log): Support 'with-diff' invocation of "C-1 C-x v L". --- lisp/vc/vc-hg.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lisp/vc/vc-hg.el b/lisp/vc/vc-hg.el index 5ff1a6204b1..c9407b1b597 100644 --- a/lisp/vc/vc-hg.el +++ b/lisp/vc/vc-hg.el @@ -432,6 +432,8 @@ If LIMIT is non-nil, show no more than this many entries." (nconc (when start-revision (list (format "-r%s:0" start-revision))) (when limit (list "-l" (format "%s" limit))) + (when (eq vc-log-view-type 'with-diff) + (list "-p")) (if shortlog `(,@(if vc-hg-log-graph '("--graph")) "--template" -- 2.39.2