comparison hgext/chgserver.py @ 28327:3ab370f84a23

chg: drop progress.assume-tty config It was necessary to go through progress.uisetup() to set up the progressui wrapper. Since the progress extension has got into the core, progress.assume-tty is no longer necessary.
author Jun Wu <quark@fb.com>
date Mon, 29 Feb 2016 11:43:25 +0000
parents ea400a4f32e6
children e00e57d83653
comparison
equal deleted inserted replaced
28326:ea400a4f32e6 28327:3ab370f84a23
580 if exc.errno != errno.ENOENT: 580 if exc.errno != errno.ENOENT:
581 raise 581 raise
582 582
583 class chgunixservice(commandserver.unixservice): 583 class chgunixservice(commandserver.unixservice):
584 def init(self): 584 def init(self):
585 # drop options set for "hg serve --cmdserver" command
586 self.ui.setconfig('progress', 'assume-tty', None)
587 signal.signal(signal.SIGHUP, self._reloadconfig) 585 signal.signal(signal.SIGHUP, self._reloadconfig)
588 self._inithashstate() 586 self._inithashstate()
589 class cls(AutoExitMixIn, SocketServer.ForkingMixIn, 587 class cls(AutoExitMixIn, SocketServer.ForkingMixIn,
590 SocketServer.UnixStreamServer): 588 SocketServer.UnixStreamServer):
591 ui = self.ui 589 ui = self.ui