]> git.eshelyaron.com Git - emacs.git/commitdiff
Support showing one revision with Subversion
authorEli Zaretskii <eliz@gnu.org>
Fri, 29 Nov 2019 10:00:59 +0000 (12:00 +0200)
committerEli Zaretskii <eliz@gnu.org>
Fri, 29 Nov 2019 10:00:59 +0000 (12:00 +0200)
* lisp/vc/vc-svn.el (vc-svn-print-log): Support 'with-diff'
invocation of "C-1 C-x v L".

lisp/vc/vc-svn.el

index ed34b357f9bd61a8e147def18dd35c1a982ec3e0..a2081e1ab9e0013c1542951855956abb9b27b13e 100644 (file)
@@ -579,13 +579,17 @@ If LIMIT is non-nil, show no more than this many entries."
                       ;; subsequent commits.  At least that's what the
                       ;; vc-cvs.el code does.
                       "-rHEAD:0"))
-                   (when limit (list "--limit" (format "%s" limit))))))
+                    (if (eq vc-log-view-type 'with-diff)
+                        (list "--diff"))
+                    (when limit (list "--limit" (format "%s" limit))))))
        ;; Dump log for the entire directory.
        (apply 'vc-svn-command buffer 0 nil "log"
               (append
                (list
                 (if start-revision (format "-r%s" start-revision) "-rHEAD:0"))
-               (when limit (list "--limit" (format "%s" limit)))))))))
+                (if (eq vc-log-view-type 'with-diff)
+                    (list "--diff"))
+                (when limit (list "--limit" (format "%s" limit)))))))))
 
 (defun vc-svn-diff (files &optional oldvers newvers buffer async)
   "Get a difference report using SVN between two revisions of fileset FILES."