]> git.eshelyaron.com Git - emacs.git/commitdiff
Prevent loading vc-bzr writing to ~/.bzr.log
authorGlenn Morris <rgm@gnu.org>
Sun, 21 May 2017 00:05:18 +0000 (17:05 -0700)
committerGlenn Morris <rgm@gnu.org>
Sun, 21 May 2017 00:05:18 +0000 (17:05 -0700)
* lisp/vc/vc-bzr.el (vc-bzr-status-switches): Disable bzr logging.

lisp/vc/vc-bzr.el

index 73d05c7bfce595e4c2bfeeae62d8364111045d9b..d0e9f7744b84fa85442f7e4846931c32e85735d7 100644 (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.