mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 07:17:55 +03:00
cf8afe35a3
This is necessary to suspend/resume long pulls, interactive curses session, etc. The implementation is based on emacsclient, but our version doesn't test if chg process is foreground or not before propagating SIGCONT. This is because chg isn't always an interactive session. If we copy the SIGTTIN/SIGTTOU emulation from emacsclient, non-interactive session can't be moved to a background job. $ chg pull ^Z suspended $ bg %1 [1] continued [1] suspended (tty input) # wrong https://github.com/emacs-mirror/emacs/blob/0e96320/lib-src/emacsclient.c#L1094 |
||
---|---|---|
.. | ||
chg.1 | ||
chg.c | ||
hgclient.c | ||
hgclient.h | ||
Makefile | ||
README | ||
util.c | ||
util.h |
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.