Mercurial > hg
changeset 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 | 950e72fc7cf3 |
children | 7016f7fb8fe3 |
files | mercurial/ui.py |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
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):