ui.py: don't let parent and child ui objects share header and prev_header
authorAlexis S. L. Carvalho <alexis@cecm.usp.br>
Tue, 10 Oct 2006 18:43:20 -0300
changeset 3339 0e3c45a74683
parent 3338 1b6d0fa84e0d
child 3340 929d04962115
ui.py: don't let parent and child ui objects share header and prev_header
mercurial/ui.py
--- 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