changeset 104086:1bce2f053aeb

(vc-bzr-print-log): Pass multiple arguments to bzr log. (vc-bzr-log-view-mode): Adjust log-view-file-re.
author Dan Nicolaescu <dann@ics.uci.edu>
date Mon, 27 Jul 2009 17:50:22 +0000
parents 6298508aee59
children 1d508ec9a0a3
files lisp/ChangeLog lisp/vc-bzr.el
diffstat 2 files changed, 9 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Mon Jul 27 17:41:38 2009 +0000
+++ b/lisp/ChangeLog	Mon Jul 27 17:50:22 2009 +0000
@@ -1,5 +1,8 @@
 2009-07-27  Dan Nicolaescu  <dann@ics.uci.edu>
 
+	* vc-bzr.el (vc-bzr-print-log): Pass multiple arguments to bzr log.
+	(vc-bzr-log-view-mode): Adjust log-view-file-re.
+
 	* add-log.el (change-log-mode-map): Add a menu.
 
 2009-07-27  Michael Albinus  <michael.albinus@gmx.de>
--- a/lisp/vc-bzr.el	Mon Jul 27 17:41:38 2009 +0000
+++ b/lisp/vc-bzr.el	Mon Jul 27 17:50:22 2009 +0000
@@ -457,7 +457,7 @@
   (remove-hook 'log-view-mode-hook 'vc-bzr-log-view-mode) ;Deactivate the hack.
   (require 'add-log)
   (set (make-local-variable 'log-view-per-file-logs) nil)
-  (set (make-local-variable 'log-view-file-re) "^Working file:[ \t]+\\(.+\\)")
+  (set (make-local-variable 'log-view-file-re) "\\`a\\`")
   (set (make-local-variable 'log-view-message-re)
        "^ *\\(?:revno: \\([0-9.]+\\)\\|merged: .+\\)")
   (set (make-local-variable 'log-view-font-lock-keywords)
@@ -481,16 +481,11 @@
   ;; FIXME: `vc-bzr-command' runs `bzr log' with `LC_MESSAGES=C', so
   ;; the log display may not what the user wants - but I see no other
   ;; way of getting the above regexps working.
-  (dolist (file files)
-    (vc-exec-after
-     `(let ((inhibit-read-only t))
-        (with-current-buffer buffer
-          ;; Insert the file name so that log-view.el can find it.
-          (insert "Working file: " ',file "\n")) ;; Like RCS/CVS.
-        (apply 'vc-bzr-command "log" ',buffer 'async ',file
-               ',(if (stringp vc-bzr-log-switches)
-                     (list vc-bzr-log-switches)
-                   vc-bzr-log-switches))))))
+  (with-current-buffer buffer
+    (apply 'vc-bzr-command "log" buffer 'async files
+	   (if (stringp vc-bzr-log-switches)
+	       (list vc-bzr-log-switches)
+	     vc-bzr-log-switches))))
 
 (defun vc-bzr-show-log-entry (revision)
   "Find entry for patch name REVISION in bzr change log buffer."