summaryrefslogtreecommitdiff
path: root/lisp/vc-hg.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/vc-hg.el')
-rw-r--r--lisp/vc-hg.el12
1 files changed, 8 insertions, 4 deletions
diff --git a/lisp/vc-hg.el b/lisp/vc-hg.el
index 5a90b66e8b5..91e9d682f88 100644
--- a/lisp/vc-hg.el
+++ b/lisp/vc-hg.el
@@ -202,10 +202,14 @@ If nil, use the value of `vc-diff-switches'. If t, use no switches."
standard-output
(setq status
(condition-case nil
- ;; Ignore all errors.
- (process-file
- "hg" nil t nil
- "log" "-l1" (file-relative-name file))
+ (let ((process-environment
+ ;; Avoid localization of messages so we can parse the output.
+ (append (list "TERM=dumb" "LANGUAGE=C" "HGRC=")
+ process-environment)))
+ ;; Ignore all errors.
+ (process-file
+ "hg" nil t nil
+ "log" "-l1" (file-relative-name file)))
;; Some problem happened. E.g. We can't find an `hg'
;; executable.
(error nil)))))))