; * lisp/vc/vc-hg.el (vc-hg-diff): Tweak 'and' forms.

This commit is contained in:
Sean Whitton 2025-09-09 14:45:45 +01:00
parent 744216c029
commit ab83e15d8c

View file

@ -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*")