Comments
Patch
@@ -13,7 +13,6 @@
$ 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:
@@ -21,8 +20,7 @@
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.
+ * configuration files are reloaded automatically by default.
* CHGHG or HG specifies the path to the hg executable spawned as the
background command server.
@@ -540,8 +540,6 @@
int sig = 0;
if (strcmp(argv[1], "--kill-chg-daemon") == 0)
sig = SIGTERM;
- if (strcmp(argv[1], "--reload-chg-daemon") == 0)
- sig = SIGHUP;
if (sig > 0) {
killcmdserver(&opts, sig);
return 0;
@@ -616,7 +616,6 @@
class chgunixservice(commandserver.unixservice):
def init(self):
- signal.signal(signal.SIGHUP, self._reloadconfig)
self._inithashstate()
class cls(AutoExitMixIn, SocketServer.ForkingMixIn,
SocketServer.UnixStreamServer):
@@ -647,9 +646,6 @@
os.symlink(os.path.basename(self.address), tempaddress)
util.rename(tempaddress, self.baseaddress)
- def _reloadconfig(self, signum, frame):
- self.ui = self.server.ui = _renewui(self.ui)
-
def run(self):
try:
self.server.serve_forever()