comparison lisp/vc-svn.el @ 95966:054335cbee3d

* log-view.el (log-view-diff-changeset): New function. (log-view-mode-map, log-view-mode-menu): Bind it. (log-view-per-file-logs, log-view-vc-fileset) (log-view-vc-backend): New variables. (log-view-find-revision, log-view-modify-change-comment) (log-view-annotate-version): Throw an error if the log is for more than one file and we can't find the current file. Get the current file from log-view-vc-fileset if necessary. (log-view-diff): Get the current file from log-view-vc-fileset if necessary. * vc.el (vc-print-log): Set log-view-vc-fileset and log-view-vc-backend. * vc-hg.el (vc-hg-log-view-mode): Call the log method only once. (vc-hg-log-view-mode): Declare for compiler. (vc-hg-log-view-mode): Set log-view-per-file-logs and log-view-file-re. (vc-hg-diff): If no file is passed, use default-directory for cwd. * vc-bzr.el (vc-bzr-log-view-mode): Set log-view-per-file-logs. * vc-svn.el (vc-svn-log-view-mode): New derived mode.
author Dan Nicolaescu <dann@ics.uci.edu>
date Sun, 15 Jun 2008 14:58:24 +0000
parents 883c17cb4544
children 243cf028ce86
comparison
equal deleted inserted replaced
95965:2793cde5d016 95966:054335cbee3d
422 (error "Log edit failed"))))) 422 (error "Log edit failed")))))
423 423
424 ;;; 424 ;;;
425 ;;; History functions 425 ;;; History functions
426 ;;; 426 ;;;
427
428 (define-derived-mode vc-svn-log-view-mode log-view-mode "SVN-Log-View"
429 (require 'add-log)
430 (set (make-local-variable 'log-view-per-file-logs) nil))
427 431
428 (defun vc-svn-print-log (files &optional buffer) 432 (defun vc-svn-print-log (files &optional buffer)
429 "Get change log(s) associated with FILES." 433 "Get change log(s) associated with FILES."
430 (save-current-buffer 434 (save-current-buffer
431 (vc-setup-buffer buffer) 435 (vc-setup-buffer buffer)