# HG changeset patch # User Nick Roberts # Date 1233744544 0 # Node ID 0dd7b7766a8543ec2276fd237a529c470cf866c6 # Parent 22144f4fd30191e83976f9c75e1e9b68ed2162ff (vc-svn-diff): Revert previous change but add a test for newvars is nil. (C-u C-x v = with default values). diff -r 22144f4fd301 -r 0dd7b7766a85 lisp/vc-svn.el --- a/lisp/vc-svn.el Wed Feb 04 10:46:14 2009 +0000 +++ b/lisp/vc-svn.el Wed Feb 04 10:49:04 2009 +0000 @@ -483,6 +483,19 @@ (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)