mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-26 19:18:50 +00:00
(vc-svn-diff): Revert previous change but add a test
for newvars is nil. (C-u C-x v = with default values).
This commit is contained in:
parent
77900a45d4
commit
22b5692c3d
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user