mercurial/ui.py
changeset 6333 f477afeb3a0f
parent 6325 41c77bb8d7f3
child 6351 eed0a6a05096
--- 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):