comparison contrib/chg/README @ 28454:8062869860b8

chg: remove manual reload logic chgserver now validates and reloads configs automatically. Manually reloading is no longer necessary. Besides, we are deprecating pid files since the server will periodically check its ownership of the socket file and exit if it does not own the socket file any longer, which works more reliable than a pid file. This patch removes the SIGHUP reload logic from both chg server and client.
author Jun Wu <quark@fb.com>
date Thu, 10 Mar 2016 00:12:33 +0000
parents 726f8d6cc324
children 62b890496de5
comparison
equal deleted inserted replaced
28453:8a7110e351ec 28454:8062869860b8
11 Usage: 11 Usage:
12 12
13 $ chg help # show help of Mercurial 13 $ chg help # show help of Mercurial
14 $ alias hg=chg # replace hg command 14 $ alias hg=chg # replace hg command
15 $ chg --kill-chg-daemon # terminate background server 15 $ chg --kill-chg-daemon # terminate background server
16 $ chg --reload-chg-daemon # reload configuration files
17 16
18 Environment variables: 17 Environment variables:
19 18
20 Although cHg tries to update environment variables, some of them cannot be 19 Although cHg tries to update environment variables, some of them cannot be
21 changed after spawning the server. The following variables are specially 20 changed after spawning the server. The following variables are specially
22 handled: 21 handled:
23 22
24 * configuration files are reloaded if HGPLAIN or HGPLAINEXCEPT changed, but 23 * configuration files are reloaded automatically by default.
25 some behaviors won't change correctly.
26 * CHGHG or HG specifies the path to the hg executable spawned as the 24 * CHGHG or HG specifies the path to the hg executable spawned as the
27 background command server. 25 background command server.
28 26
29 The following variables are available for testing: 27 The following variables are available for testing:
30 28