From 22b5692c3d5921910c1d9b3bf4b5fffb155694e7 Mon Sep 17 00:00:00 2001 From: Nick Roberts Date: Wed, 4 Feb 2009 10:49:04 +0000 Subject: [PATCH] (vc-svn-diff): Revert previous change but add a test for newvars is nil. (C-u C-x v = with default values). --- lisp/vc-svn.el | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lisp/vc-svn.el b/lisp/vc-svn.el index c2d0d62ab6c..e79ef9a0fa6 100644 --- a/lisp/vc-svn.el +++ b/lisp/vc-svn.el @@ -483,6 +483,19 @@ or svn+ssh://." (defun vc-svn-diff (files &optional oldvers newvers buffer) "Get a difference report using SVN between two revisions of fileset FILES." + (and oldvers + (not newvers) + files + (catch 'no + (dolist (f files) + (or (equal oldvers (vc-working-revision f)) + (throw 'no nil))) + t) + ;; Use nil rather than the current revision because svn handles + ;; it better (i.e. locally). Note that if _any_ of the files + ;; has a different revision, we fetch the lot, which is + ;; obviously sub-optimal. + (setq oldvers nil)) (let* ((switches (if vc-svn-diff-switches (vc-switches 'SVN 'diff) -- 2.39.5