From: Nick Roberts Date: Wed, 4 Feb 2009 10:49:04 +0000 (+0000) Subject: (vc-svn-diff): Revert previous change but add a test X-Git-Tag: emacs-pretest-23.0.91~418 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=22b5692c3d5921910c1d9b3bf4b5fffb155694e7;p=emacs.git (vc-svn-diff): Revert previous change but add a test for newvars is nil. (C-u C-x v = with default values). --- 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)