Mercurial > hg
diff mercurial/ui.py @ 6333:f477afeb3a0f
ui: copy overlay from both direct and indirect parentui
author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
---|---|
date | Thu, 20 Mar 2008 22:46:35 +0100 |
parents | 41c77bb8d7f3 |
children | eed0a6a05096 |
line wrap: on
line diff
--- 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):