[PATCH 04 of 10] chg: drop --cwd /

Jun Wu quark at fb.com
Wed Mar 2 05:44:06 EST 2016


# HG changeset patch
# User Jun Wu <quark at fb.com>
# Date 1456746319 0
#      Mon Feb 29 11:45:19 2016 +0000
# Node ID 9cd173eff72962ada9601a368efdb8f87e2eed43
# Parent  855e65accbb4519f7140828efe6800b0b92fd5f4
chg: drop --cwd /

We intensionally want chgserver to load repo config to be able to:
- find out what extensions it should load
- detect config changes correctly
Therefore the --cwd flag is dropped.

diff --git a/contrib/chg/chg.c b/contrib/chg/chg.c
--- a/contrib/chg/chg.c
+++ b/contrib/chg/chg.c
@@ -210,7 +210,6 @@
 	const char *baseargv[] = {
 		hgcmd,
 		"serve",
-		"--cwd", "/",
 		"--cmdserver", "chgunix",
 		"--address", opts->sockname,
 		"--daemon-postexec", "none",


More information about the Mercurial-devel mailing list