1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

Prevent loading vc-bzr writing to ~/.bzr.log

* lisp/vc/vc-bzr.el (vc-bzr-status-switches): Disable bzr logging.
This commit is contained in:
Glenn Morris 2017-05-20 17:05:18 -07:00
parent ed8b4e0c0c
commit 7f4e5ca8fb

View file

@ -98,7 +98,9 @@ If nil, use the value of `vc-annotate-switches'. If t, use no switches."
(defcustom vc-bzr-status-switches
(ignore-errors
(with-temp-buffer
(call-process vc-bzr-program nil t nil "help" "status")
(let ((process-environment (cons (format "BZR_LOG=%s" null-device)
process-environment)))
(call-process vc-bzr-program nil t nil "help" "status"))
(if (search-backward "--no-classify" nil t)
"--no-classify")))
"String or list of strings specifying switches for bzr status under VC.