]> code.delx.au - gnu-emacs/commitdiff
(vc-bzr-print-log): Pass multiple arguments to bzr log.
authorDan Nicolaescu <dann@ics.uci.edu>
Mon, 27 Jul 2009 17:50:22 +0000 (17:50 +0000)
committerDan Nicolaescu <dann@ics.uci.edu>
Mon, 27 Jul 2009 17:50:22 +0000 (17:50 +0000)
(vc-bzr-log-view-mode): Adjust log-view-file-re.

lisp/ChangeLog
lisp/vc-bzr.el

index 5053ea60b0644d9d6d3612a230bab69752c2e054..1b9f56415dc12135a5647d51e93f7efd29ddfabe 100644 (file)
@@ -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>
index 9ad346f1e12a5ab761b9fa18d17e3c48e376bfeb..b97190056b458747c6a4db324140c6fbb88605e0 100644 (file)
@@ -457,7 +457,7 @@ REV non-nil gets an error."
   (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 @@ REV non-nil gets an error."
   ;; 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."