Mercurial > public > mercurial-scm > hg-stable
diff mercurial/chgserver.py @ 32277:1ada3d18e7fb
commandserver: move printbanner logic to bindsocket
bindsocket now handles listen automatically. "printbanner" seems to be just
a part of "bindsocket". This simplifies the interface a bit.
author | Jun Wu <quark@fb.com> |
---|---|
date | Sun, 30 Apr 2017 11:21:05 -0700 |
parents | c8b9943c07eb |
children | 6096d27dc119 |
line wrap: on
line diff
--- a/mercurial/chgserver.py Sun Apr 30 11:08:27 2017 -0700 +++ b/mercurial/chgserver.py Sun Apr 30 11:21:05 2017 -0700 @@ -492,6 +492,7 @@ self._checkextensions() self._bind(sock) self._createsymlink() + # no "listening at" message should be printed to simulate hg behavior def _inithashstate(self, address): self._baseaddress = address @@ -546,10 +547,6 @@ # the client will start a new server on demand. util.tryunlink(self._realaddress) - def printbanner(self, address): - # no "listening at" message should be printed to simulate hg behavior - pass - def shouldexit(self): if not self._issocketowner(): self.ui.debug('%s is not owned, exiting.\n' % self._realaddress)