summaryrefslogtreecommitdiff
path: root/lisp/vc
diff options
context:
space:
mode:
authorJuanma Barranquero <lekktu@gmail.com>2010-09-14 16:41:53 +0200
committerJuanma Barranquero <lekktu@gmail.com>2010-09-14 16:41:53 +0200
commit6664fc59a8f296117ea98b943f062c0cc0e907c1 (patch)
treeb8e0bf218492291433d00a71122bc8cd2c662ea9 /lisp/vc
parent74769e8b4c73f24e8f3356bd281a56a30000c648 (diff)
parentf3a30a50fab486dcaafb9d897797794fe4c3c4b3 (diff)
downloademacs-6664fc59a8f296117ea98b943f062c0cc0e907c1.tar.gz
Merge changes from emacs-23 branch.
Diffstat (limited to 'lisp/vc')
-rw-r--r--lisp/vc/vc-hg.el8
1 files changed, 6 insertions, 2 deletions
diff --git a/lisp/vc/vc-hg.el b/lisp/vc/vc-hg.el
index c087a4d9e1f..689cd4d12bd 100644
--- a/lisp/vc/vc-hg.el
+++ b/lisp/vc/vc-hg.el
@@ -171,10 +171,12 @@ If nil, use the value of `vc-diff-switches'. If t, use no switches."
(let ((process-environment
;; Avoid localization of messages so we
;; can parse the output.
- (append (list "TERM=dumb" "LANGUAGE=C" "HGRCPATH=")
+ (append (list "TERM=dumb" "LANGUAGE=C")
process-environment)))
(process-file
"hg" nil t nil
+ "--config" "alias.status=status"
+ "--config" "defaults.status="
"status" "-A" (file-relative-name file)))
;; Some problem happened. E.g. We can't find an `hg'
;; executable.
@@ -199,7 +201,7 @@ If nil, use the value of `vc-diff-switches'. If t, use no switches."
((status nil)
(default-directory (file-name-directory file))
;; Avoid localization of messages so we can parse the output.
- (avoid-local-env (append (list "TERM=dumb" "LANGUAGE=C" "HGRCPATH=")
+ (avoid-local-env (append (list "TERM=dumb" "LANGUAGE=C")
process-environment))
(out
(with-output-to-string
@@ -211,6 +213,8 @@ If nil, use the value of `vc-diff-switches'. If t, use no switches."
;; Ignore all errors.
(process-file
"hg" nil t nil
+ "--config" "alias.parents=parents"
+ "--config" "defaults.parents="
"parents" "--template" "{rev}" (file-relative-name file)))
;; Some problem happened. E.g. We can't find an `hg'
;; executable.