##// END OF EJS Templates
localrepo: prevent to copy repo local config, copy baseui instead...
Simon Heimberg -
r20082:b04cc865 default
parent child Browse files
Show More
@@ -184,7 +184,10 b' class server(object):'
184 # persist between requests
184 # persist between requests
185 copiedui = self.ui.copy()
185 copiedui = self.ui.copy()
186 self.repo.baseui = copiedui
186 self.repo.baseui = copiedui
187 self.repo.ui = self.repo.dirstate._ui = self.repoui.copy()
187 # clone ui without using ui.copy because this is protected
188 repoui = self.repoui.__class__(self.repoui)
189 repoui.copy = copiedui.copy # redo copy protection
190 self.repo.ui = self.repo.dirstate._ui = repoui
188 self.repo.invalidate()
191 self.repo.invalidate()
189 self.repo.invalidatedirstate()
192 self.repo.invalidatedirstate()
190
193
@@ -171,6 +171,7 b' class localrepository(object):'
171 self.opener = self.vfs
171 self.opener = self.vfs
172 self.baseui = baseui
172 self.baseui = baseui
173 self.ui = baseui.copy()
173 self.ui = baseui.copy()
174 self.ui.copy = baseui.copy # prevent copying repo configuration
174 # A list of callback to shape the phase if no data were found.
175 # A list of callback to shape the phase if no data were found.
175 # Callback are in the form: func(repo, roots) --> processed root.
176 # Callback are in the form: func(repo, roots) --> processed root.
176 # This list it to be filled by extension during repo setup
177 # This list it to be filled by extension during repo setup
General Comments 0
You need to be logged in to leave comments. Login now