##// 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 546 self.lastactive = time.time()
547 547
548 548 def bindsocket(self, sock, address):
549 self.address = address
550 self._inithashstate()
549 self._inithashstate(address)
551 550 self._checkextensions()
552 551 self._bind(sock)
553 552 self._createsymlink()
554 553
555 def _inithashstate(self):
556 self.baseaddress = self.address
554 def _inithashstate(self, address):
555 self.baseaddress = address
557 556 if self.ui.configbool('chgserver', 'skiphash', False):
558 557 self.hashstate = None
558 self.address = address
559 559 return
560 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 563 def _checkextensions(self):
564 564 if not self.hashstate:
General Comments 0
You need to be logged in to leave comments. Login now