A bit faster Mercurial client for Unix with per-user cmdserver daemon.


for local use:

  1. Run make local (or gmake local on FreeBSD.)
  2. Create symlink to chg from your PATH

to system:

  1. Run make install


Same as hg. e.g.

% chg stat

You may want to add the alias:

% alias hg=chg

To terminate background cmdserver:

% chg --kill-chg-daemon

To reload configuration files:

% chg --reload-chg-daemon

Environment Variables

cHg updates os.environ on each request, but some variables cannot make an effect. The following variables are specially handled by cHg:

  • reload config if HGPLAIN or HGPLAINEXCEPT changed, but some behaviors may not change.
  • reload message catalog if LANG, LANGUAGE or LC_MESSAGES changed.
  • CHGHG or HG is the path to the 'hg' executable spawned as the background cmdserver.

The following variables are available for testing purpose:

  • CHGDEBUG enables debug message of cHg.
  • CHGCMDSERVEROPTS gives additional parameters to background cmdserver.
  • CHGSOCKNAME specifies socket path of background cmdserver.