From ab83e15d8c24220d154676a98ee3bb504b9983c7 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Tue, 9 Sep 2025 14:45:45 +0100 Subject: [PATCH] ; * lisp/vc/vc-hg.el (vc-hg-diff): Tweak 'and' forms. --- lisp/vc/vc-hg.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/vc/vc-hg.el b/lisp/vc/vc-hg.el index f2364424962..2d633e07c1d 100644 --- a/lisp/vc/vc-hg.el +++ b/lisp/vc/vc-hg.el @@ -557,9 +557,9 @@ This requires hg 4.4 or later, for the \"-L\" option of \"hg log\"." "Get a difference report using hg between two revisions of FILES." (let* ((firstfile (car files)) (working (and firstfile (vc-working-revision firstfile)))) - (when (and (equal oldvers working) (not newvers)) + (when (and (not newvers) (equal oldvers working)) (setq oldvers nil)) - (when (and (not oldvers) newvers) + (when (and newvers (not oldvers)) (setq oldvers working)) (apply #'vc-hg-command (or buffer "*vc-diff*")