chgserver: do not keep repo object
authorJun Wu <quark@fb.com>
Wed, 16 Mar 2016 11:57:09 +0000
changeset 28537 881d027d3935
parent 28536 a979f5b03320
child 28538 009f58f1ea75
chgserver: do not keep repo object The current chgserver design is to use one server to handle multiple repos which has same [extensions] config. Previously the client uses --cwd / to avoid creating a repo object. Now we need to set repo to None before we have code to make "serve" command norepo when it's chg.
hgext/chgserver.py
--- a/hgext/chgserver.py	Sat Mar 12 04:24:11 2016 +0000
+++ b/hgext/chgserver.py	Wed Mar 16 11:57:09 2016 +0000
@@ -638,6 +638,7 @@
 
 class chgunixservice(commandserver.unixservice):
     def init(self):
+        self.repo = None
         self._inithashstate()
         self._checkextensions()
         class cls(AutoExitMixIn, SocketServer.ForkingMixIn,