##// END OF EJS Templates
cmdserver: copy repo.ui before running commands
Idan Kamara -
r14750:f5f97a0f stable
parent child Browse files
Show More
@@ -143,6 +143,7 b' class server(object):'
143 logfile = open(logpath, 'a')
143 logfile = open(logpath, 'a')
144
144
145 self.repo = repo
145 self.repo = repo
146 self.repoui = repo.ui
146
147
147 if mode == 'pipe':
148 if mode == 'pipe':
148 self.cerr = channeledoutput(sys.stderr, sys.stdout, 'e')
149 self.cerr = channeledoutput(sys.stderr, sys.stdout, 'e')
@@ -176,7 +177,9 b' class server(object):'
176 else:
177 else:
177 args = self._read(length).split('\0')
178 args = self._read(length).split('\0')
178
179
179 # copy the ui so changes to it don't persist between requests
180 # copy the uis so changes (e.g. --config or --verbose) don't
181 # persist between requests
182 self.repo.ui = self.repo.dirstate._ui = self.repoui.copy()
180 req = dispatch.request(args, self.ui.copy(), self.repo, self.cin,
183 req = dispatch.request(args, self.ui.copy(), self.repo, self.cin,
181 self.cout, self.cerr)
184 self.cout, self.cerr)
182
185
General Comments 0
You need to be logged in to leave comments. Login now