mercurial/commandserver.py
changeset 34373 76b334b9f45c
parent 33543 3ef3bf704e47
child 34486 a57c938e7ac8
equal deleted inserted replaced
34372:2a360445afa0 34373:76b334b9f45c
   182 
   182 
   183         self.client = fin
   183         self.client = fin
   184 
   184 
   185     def cleanup(self):
   185     def cleanup(self):
   186         """release and restore resources taken during server session"""
   186         """release and restore resources taken during server session"""
   187         pass
       
   188 
   187 
   189     def _read(self, size):
   188     def _read(self, size):
   190         if not size:
   189         if not size:
   191             return ''
   190             return ''
   192 
   191 
   420         """True if server should shut down; checked per pollinterval"""
   419         """True if server should shut down; checked per pollinterval"""
   421         return False
   420         return False
   422 
   421 
   423     def newconnection(self):
   422     def newconnection(self):
   424         """Called when main process notices new connection"""
   423         """Called when main process notices new connection"""
   425         pass
       
   426 
   424 
   427     def createcmdserver(self, repo, conn, fin, fout):
   425     def createcmdserver(self, repo, conn, fin, fout):
   428         """Create new command server instance; called in the process that
   426         """Create new command server instance; called in the process that
   429         serves for the current connection"""
   427         serves for the current connection"""
   430         return server(self.ui, repo, fin, fout)
   428         return server(self.ui, repo, fin, fout)