From: Dan Nicolaescu Date: Mon, 27 Jul 2009 17:50:22 +0000 (+0000) Subject: (vc-bzr-print-log): Pass multiple arguments to bzr log. X-Git-Tag: emacs-pretest-23.1.90~2010 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1c0f0c3b5b5df332210f49e6c08fd73474f3655c;p=emacs.git (vc-bzr-print-log): Pass multiple arguments to bzr log. (vc-bzr-log-view-mode): Adjust log-view-file-re. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 5053ea60b06..1b9f56415dc 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,8 @@ 2009-07-27 Dan Nicolaescu + * 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 diff --git a/lisp/vc-bzr.el b/lisp/vc-bzr.el index 9ad346f1e12..b97190056b4 100644 --- a/lisp/vc-bzr.el +++ b/lisp/vc-bzr.el @@ -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."