[PATCH] makefile: don't use system hgrc when running hg in-place

Bryan O'Sullivan bos at serpentine.com
Fri Nov 9 18:09:59 CST 2012


# HG changeset patch
# User Bryan O'Sullivan <bryano at fb.com>
# Date 1352506176 28800
# Node ID 466751a706674b6e591442bfad7df3c6f3771fa5
# Parent  123560a9b0f5b45858feb54d95ee5d6da5730783
makefile: don't use system hgrc when running hg in-place

This suppresses the printing of spurious error messages if a global
hgrc refers to extensions that the in-place hg can't access.

diff --git a/Makefile b/Makefile
--- a/Makefile
+++ b/Makefile
@@ -34,7 +34,7 @@ all: build doc
 
 local:
 	$(PYTHON) setup.py $(PURE) build_py -c -d . build_ext -i build_hgexe -i build_mo
-	$(PYTHON) hg version
+	env HGRCPATH= $(PYTHON) hg version
 
 build:
 	$(PYTHON) setup.py $(PURE) build


More information about the Mercurial-devel mailing list