Mercurial > hg
changeset 3339:0e3c45a74683
ui.py: don't let parent and child ui objects share header and prev_header
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Tue, 10 Oct 2006 18:43:20 -0300 |
parents | 1b6d0fa84e0d |
children | 929d04962115 |
files | mercurial/ui.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/ui.py Tue Oct 10 18:43:20 2006 -0300 +++ b/mercurial/ui.py Tue Oct 10 18:43:20 2006 -0300 @@ -14,6 +14,8 @@ def __init__(self, verbose=False, debug=False, quiet=False, interactive=True, traceback=False, parentui=None): self.overlay = {} + self.header = [] + self.prev_header = [] if parentui is None: # this is the parent of all ui children self.parentui = None @@ -29,8 +31,6 @@ self.updateopts(verbose, debug, quiet, interactive) self.diffcache = None - self.header = [] - self.prev_header = [] self.revlogopts = self.configrevlog() else: # parentui may point to an ui object which is already a child