ui: copy overlay from both direct and indirect parentui
authorDirkjan Ochtman <dirkjan@ochtman.nl>
Thu, 20 Mar 2008 22:46:35 +0100
changeset 6333 f477afeb3a0f
parent 6332 950e72fc7cf3
child 6334 7016f7fb8fe3
ui: copy overlay from both direct and indirect parentui
mercurial/ui.py
--- a/mercurial/ui.py	Thu Mar 20 23:32:43 2008 +0100
+++ b/mercurial/ui.py	Thu Mar 20 22:46:35 2008 +0100
@@ -60,6 +60,10 @@
                 self.ucdata = dupconfig(self.parentui.ucdata)
             if self.parentui.overlay:
                 self.overlay = dupconfig(self.parentui.overlay)
+            if self.parentui is not parentui and parentui.overlay is not None:
+                if self.overlay is None:
+                    self.overlay = util.configparser()
+                updateconfig(parentui.overlay, self.overlay)
             self.buffers = parentui.buffers
 
     def __getattr__(self, key):