Mercurial > emacs
diff lisp/vc-bzr.el @ 106386:d1166d927ca2
(vc-bzr-print-log): Deal with nil arguments better.
author | Dan Nicolaescu <dann@ics.uci.edu> |
---|---|
date | Thu, 03 Dec 2009 07:31:15 +0000 |
parents | e90925cbde07 |
children | e01e9655414f |
line wrap: on
line diff
--- a/lisp/vc-bzr.el Thu Dec 03 05:41:17 2009 +0000 +++ b/lisp/vc-bzr.el Thu Dec 03 07:31:15 2009 +0000 @@ -493,11 +493,12 @@ ;; way of getting the above regexps working. (with-current-buffer buffer (apply 'vc-bzr-command "log" buffer 'async files - (when shortlog "--short") - (when limit (list "-l" (format "%s" limit))) - (if (stringp vc-bzr-log-switches) - (list vc-bzr-log-switches) - vc-bzr-log-switches)))) + (append + (when shortlog '("--short")) + (when limit (list "-l" (format "%s" limit))) + (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."