sapling/contrib/chg
Jun Wu 734e02b02d chg: send type information via S channel (BC)
Previously S channel is only used to send system commands. It will also be
used to send pager commands. So add a type parameter.

This breaks older chg clients. But chg and hg should always come from a
single commit and be packed into a single package. Supporting running
inconsistent versions of chg and hg seems to be unnecessarily complicated
with little benefit. So just make the change and assume people won't use
inconsistent chg with hg.
2017-01-06 16:11:03 +00:00
..
chg.1 chg: remove manual reload logic 2016-03-10 00:12:33 +00:00
chg.c chg: add procutil.h 2017-01-02 14:57:14 +00:00
hgclient.c chg: send type information via S channel (BC) 2017-01-06 16:11:03 +00:00
hgclient.h chg: add pgid to hgclient struct 2016-07-17 23:05:59 +01:00
Makefile chg: add procutil.h 2017-01-02 14:57:14 +00:00
procutil.c chg: add procutil.h 2017-01-02 14:57:14 +00:00
procutil.h chg: add procutil.h 2017-01-02 14:57:14 +00:00
README chg: change default connect timeout to 60 seconds 2016-06-15 21:36:31 +01:00
util.c chg: extract the logic of setting FD_CLOEXEC to a utility function 2016-04-11 00:17:17 +01:00
util.h chg: silence warning of unused parameter 'sig' 2016-06-28 22:39:06 +09: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

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 automatically by default.
 * 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.
 * CHGTIMEOUT specifies how many seconds chg will wait before giving up
   connecting to a cmdserver. If it is 0, chg will wait forever. Default: 60