aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2010-04-20 11:57:54 -0400
committerChong Yidong2010-04-20 11:57:54 -0400
commit808ecc4e18128c336d4fa9fa54409fdc00616370 (patch)
tree8d6077716a5495a6c1ac6a0323dcba9d5a43a8ad
parent0ca12598468ccdd32b8dc6c984bfc179b2dd30ad (diff)
downloademacs-808ecc4e18128c336d4fa9fa54409fdc00616370.tar.gz
emacs-808ecc4e18128c336d4fa9fa54409fdc00616370.zip
Fix hg envvar handling (Bug#5846).
* vc-hg.el (vc-hg-state): Use HGRCPATH, not HGRC. (vc-hg-working-revision): Likewise. Use hg parents, not hg parent (Bug#5846).
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/vc-hg.el17
2 files changed, 15 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index f0eb059642e..adbe4f08827 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12010-04-20 Dan Nicolaescu <dann@ics.uci.edu>
2
3 * vc-hg.el (vc-hg-state): Use HGRCPATH, not HGRC.
4 (vc-hg-working-revision): Likewise. Use hg parents, not hg parent
5 (Bug#5846).
6
12010-04-20 Glenn Morris <rgm@gnu.org> 72010-04-20 Glenn Morris <rgm@gnu.org>
2 8
3 * emacs-lisp/lisp.el (lisp-completion-at-point): Give it a doc string. 9 * emacs-lisp/lisp.el (lisp-completion-at-point): Give it a doc string.
diff --git a/lisp/vc-hg.el b/lisp/vc-hg.el
index 2438da63670..c1dc6eadd86 100644
--- a/lisp/vc-hg.el
+++ b/lisp/vc-hg.el
@@ -168,12 +168,13 @@ If nil, use the value of `vc-diff-switches'. If t, use no switches."
168 (condition-case nil 168 (condition-case nil
169 ;; Ignore all errors. 169 ;; Ignore all errors.
170 (let ((process-environment 170 (let ((process-environment
171 ;; Avoid localization of messages so we can parse the output. 171 ;; Avoid localization of messages so we
172 (append (list "TERM=dumb" "LANGUAGE=C" "HGRC=") process-environment))) 172 ;; can parse the output.
173 173 (append (list "TERM=dumb" "LANGUAGE=C" "HGRCPATH=")
174 (process-file 174 process-environment)))
175 "hg" nil t nil 175 (process-file
176 "status" "-A" (file-relative-name file))) 176 "hg" nil t nil
177 "status" "-A" (file-relative-name file)))
177 ;; Some problem happened. E.g. We can't find an `hg' 178 ;; Some problem happened. E.g. We can't find an `hg'
178 ;; executable. 179 ;; executable.
179 (error nil))))))) 180 (error nil)))))))
@@ -197,7 +198,7 @@ If nil, use the value of `vc-diff-switches'. If t, use no switches."
197 ((status nil) 198 ((status nil)
198 (default-directory (file-name-directory file)) 199 (default-directory (file-name-directory file))
199 ;; Avoid localization of messages so we can parse the output. 200 ;; Avoid localization of messages so we can parse the output.
200 (avoid-local-env (append (list "TERM=dumb" "LANGUAGE=C" "HGRC=") 201 (avoid-local-env (append (list "TERM=dumb" "LANGUAGE=C" "HGRCPATH=")
201 process-environment)) 202 process-environment))
202 (out 203 (out
203 (with-output-to-string 204 (with-output-to-string
@@ -209,7 +210,7 @@ If nil, use the value of `vc-diff-switches'. If t, use no switches."
209 ;; Ignore all errors. 210 ;; Ignore all errors.
210 (process-file 211 (process-file
211 "hg" nil t nil 212 "hg" nil t nil
212 "parent" "--template" "{rev}" (file-relative-name file))) 213 "parents" "--template" "{rev}" (file-relative-name file)))
213 ;; Some problem happened. E.g. We can't find an `hg' 214 ;; Some problem happened. E.g. We can't find an `hg'
214 ;; executable. 215 ;; executable.
215 (error nil))))))) 216 (error nil)))))))