diff options
| author | Stefan Monnier | 2010-09-11 15:25:48 +0200 |
|---|---|---|
| committer | Stefan Monnier | 2010-09-11 15:25:48 +0200 |
| commit | 681b88dd81e6cfd792dcf80404d7c51381a59ff1 (patch) | |
| tree | 9f6a5b5038391f8fbe32ef99b8d0baff720c34de | |
| parent | 71e657fcb81573e0d9fd0c909dbf095669258787 (diff) | |
| download | emacs-681b88dd81e6cfd792dcf80404d7c51381a59ff1.tar.gz emacs-681b88dd81e6cfd792dcf80404d7c51381a59ff1.zip | |
* vc/vc-hg.el (vc-hg-state,vc-hg-working-revision):
Replace setting HGRCPATH to "" by some less invasive --config options.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/vc-hg.el | 8 |
2 files changed, 11 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 66865dc0b8a..7ab457a95fc 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2010-09-11 Sascha Wilde <wilde@sha-bang.de> | ||
| 2 | |||
| 3 | * vc/vc-hg.el (vc-hg-state,vc-hg-working-revision): | ||
| 4 | Replace setting HGRCPATH to "" by some less invasive --config options. | ||
| 5 | |||
| 1 | 2010-09-11 Stefan Monnier <monnier@iro.umontreal.ca> | 6 | 2010-09-11 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 7 | ||
| 3 | * font-lock.el (font-lock-beginning-of-syntax-function): | 8 | * font-lock.el (font-lock-beginning-of-syntax-function): |
diff --git a/lisp/vc-hg.el b/lisp/vc-hg.el index c1dc6eadd86..b29f229e26f 100644 --- a/lisp/vc-hg.el +++ b/lisp/vc-hg.el | |||
| @@ -170,10 +170,12 @@ If nil, use the value of `vc-diff-switches'. If t, use no switches." | |||
| 170 | (let ((process-environment | 170 | (let ((process-environment |
| 171 | ;; Avoid localization of messages so we | 171 | ;; Avoid localization of messages so we |
| 172 | ;; can parse the output. | 172 | ;; can parse the output. |
| 173 | (append (list "TERM=dumb" "LANGUAGE=C" "HGRCPATH=") | 173 | (append (list "TERM=dumb" "LANGUAGE=C") |
| 174 | process-environment))) | 174 | process-environment))) |
| 175 | (process-file | 175 | (process-file |
| 176 | "hg" nil t nil | 176 | "hg" nil t nil |
| 177 | "--config" "alias.status=status" | ||
| 178 | "--config" "defaults.status=" | ||
| 177 | "status" "-A" (file-relative-name file))) | 179 | "status" "-A" (file-relative-name file))) |
| 178 | ;; Some problem happened. E.g. We can't find an `hg' | 180 | ;; Some problem happened. E.g. We can't find an `hg' |
| 179 | ;; executable. | 181 | ;; executable. |
| @@ -198,7 +200,7 @@ If nil, use the value of `vc-diff-switches'. If t, use no switches." | |||
| 198 | ((status nil) | 200 | ((status nil) |
| 199 | (default-directory (file-name-directory file)) | 201 | (default-directory (file-name-directory file)) |
| 200 | ;; Avoid localization of messages so we can parse the output. | 202 | ;; Avoid localization of messages so we can parse the output. |
| 201 | (avoid-local-env (append (list "TERM=dumb" "LANGUAGE=C" "HGRCPATH=") | 203 | (avoid-local-env (append (list "TERM=dumb" "LANGUAGE=C") |
| 202 | process-environment)) | 204 | process-environment)) |
| 203 | (out | 205 | (out |
| 204 | (with-output-to-string | 206 | (with-output-to-string |
| @@ -210,6 +212,8 @@ If nil, use the value of `vc-diff-switches'. If t, use no switches." | |||
| 210 | ;; Ignore all errors. | 212 | ;; Ignore all errors. |
| 211 | (process-file | 213 | (process-file |
| 212 | "hg" nil t nil | 214 | "hg" nil t nil |
| 215 | "--config" "alias.parents=parents" | ||
| 216 | "--config" "defaults.parents=" | ||
| 213 | "parents" "--template" "{rev}" (file-relative-name file))) | 217 | "parents" "--template" "{rev}" (file-relative-name file))) |
| 214 | ;; Some problem happened. E.g. We can't find an `hg' | 218 | ;; Some problem happened. E.g. We can't find an `hg' |
| 215 | ;; executable. | 219 | ;; executable. |