sapling/contrib/chg
Yuya Nishihara c61ec06302 chg: initialize sockdirfd to -1 instead of AT_FDCWD
As we don't use sockdirfd yet, this is the simplest workaround to compile chg
on old Unices where AT_FDCWD does not exist. Foozy pointed out Mac OS X 10.10
is required for AT_FDCWD as well as xxxat() functions.
2016-04-24 21:35:30 +09:00
..
chg.1 chg: remove manual reload logic 2016-03-10 00:12:33 +00:00
chg.c chg: initialize sockdirfd to -1 instead of AT_FDCWD 2016-04-24 21:35:30 +09:00
hgclient.c chg: extract the logic of setting FD_CLOEXEC to a utility function 2016-04-11 00:17:17 +01:00
hgclient.h chg: implement validate in hgclient 2016-03-06 14:21:52 +00:00
Makefile chg: allows default hg path to be overridden 2016-03-20 15:43:20 -07:00
README chg: remove manual reload logic 2016-03-10 00:12:33 +00: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: extract the logic of setting FD_CLOEXEC to a utility function 2016-04-11 00:17:17 +01: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.