Function: vc-bzr-command
vc-bzr-command is a byte-compiled function defined in vc-bzr.el.gz.
Signature
(vc-bzr-command BZR-COMMAND BUFFER OKSTATUS FILE-OR-LIST &rest ARGS)
Documentation
Wrapper round vc-do-command using vc-bzr-program as COMMAND.
Invoke the bzr command adding BZR_PROGRESS_BAR=none and
LC_MESSAGES=C to the environment. If BZR-COMMAND is "status",
prepends vc-bzr-status-switches to ARGS.
Source Code
;; Defined in /usr/src/emacs/lisp/vc/vc-bzr.el.gz
;; since v0.9, bzr supports removing the progress indicators
;; by setting environment variable BZR_PROGRESS_BAR to "none".
(defun vc-bzr-command (bzr-command buffer okstatus file-or-list &rest args)
"Wrapper round `vc-do-command' using `vc-bzr-program' as COMMAND.
Invoke the bzr command adding `BZR_PROGRESS_BAR=none' and
`LC_MESSAGES=C' to the environment. If BZR-COMMAND is \"status\",
prepends `vc-bzr-status-switches' to ARGS."
(let ((process-environment
`("BZR_PROGRESS_BAR=none" ; Suppress progress output (bzr >=0.9)
"LC_MESSAGES=C" ; Force English output
,@process-environment)))
(apply #'vc-do-command (or buffer "*vc*") okstatus vc-bzr-program
file-or-list bzr-command
(if (and (string-equal "status" bzr-command)
vc-bzr-status-switches)
(append (if (stringp vc-bzr-status-switches)
(list vc-bzr-status-switches)
vc-bzr-status-switches)
args)
args))))