sapling/contrib/chg
Jun Wu c1d58463c7 chg: use --daemon-postexec chdir:/ instead of --cwd /
The chgserver is designed to load repo config from current directory. "--cwd /"
will prevent chgserver from loading repo config and generate a wrong
confighash, which will result in a redirect loop. This patch removes "--cwd /"
and uses "--daemon-postexec chdir:/" instead.
2016-03-09 01:20:57 +00:00
..
chg.1 chg: import frontend sources 2016-01-03 12:39:27 +09:00
chg.c chg: use --daemon-postexec chdir:/ instead of --cwd / 2016-03-09 01:20:57 +00:00
hgclient.c chg: implement validate in hgclient 2016-03-06 14:21:52 +00:00
hgclient.h chg: implement validate in hgclient 2016-03-06 14:21:52 +00:00
Makefile chg: drop progress.assume-tty config 2016-02-29 11:43:25 +00:00
README chg: import frontend sources 2016-01-03 12:39:27 +09:00
util.c chg: add utility functions mallocx, reallocx 2016-02-17 14:51:38 +00:00
util.h chg: add utility functions mallocx, reallocx 2016-02-17 14:51:38 +00:00

cHg
===

A fast client for Mercurial command server running on Unix.

Install:

 $ make
 $ make install

Usage:

 $ chg help                 # show help of Mercurial
 $ alias hg=chg             # replace hg command
 $ chg --kill-chg-daemon    # terminate background server
 $ chg --reload-chg-daemon  # reload configuration files

Environment variables:

Although cHg tries to update environment variables, some of them cannot be
changed after spawning the server. The following variables are specially
handled:

 * configuration files are reloaded if HGPLAIN or HGPLAINEXCEPT changed, but
   some behaviors won't change correctly.
 * CHGHG or HG specifies the path to the hg executable spawned as the
   background command server.

The following variables are available for testing:

 * CHGDEBUG enables debug messages.
 * CHGSOCKNAME specifies the socket path of the background cmdserver.