##// END OF EJS Templates
chgserver: refactor initialization of real/base addresses...
Yuya Nishihara -
r29597:581c0c7c default
parent child Browse files
Show More
@@ -546,19 +546,19 b' class chgunixservicehandler(object):'
546 self.lastactive = time.time()
546 self.lastactive = time.time()
547
547
548 def bindsocket(self, sock, address):
548 def bindsocket(self, sock, address):
549 self.address = address
549 self._inithashstate(address)
550 self._inithashstate()
551 self._checkextensions()
550 self._checkextensions()
552 self._bind(sock)
551 self._bind(sock)
553 self._createsymlink()
552 self._createsymlink()
554
553
555 def _inithashstate(self):
554 def _inithashstate(self, address):
556 self.baseaddress = self.address
555 self.baseaddress = address
557 if self.ui.configbool('chgserver', 'skiphash', False):
556 if self.ui.configbool('chgserver', 'skiphash', False):
558 self.hashstate = None
557 self.hashstate = None
558 self.address = address
559 return
559 return
560 self.hashstate = hashstate.fromui(self.ui)
560 self.hashstate = hashstate.fromui(self.ui)
561 self.address = _hashaddress(self.address, self.hashstate.confighash)
561 self.address = _hashaddress(address, self.hashstate.confighash)
562
562
563 def _checkextensions(self):
563 def _checkextensions(self):
564 if not self.hashstate:
564 if not self.hashstate:
General Comments 0
You need to be logged in to leave comments. Login now