[PATCH 2 of 10] ui.py: don't let parent and child ui objects share header and prev_header

Alexis S. L. Carvalho alexis at cecm.usp.br
Thu Sep 21 22:05:14 UTC 2006


# HG changeset patch
# User Alexis S. L. Carvalho <alexis at cecm.usp.br>
# Date 1158879792 10800
# Node ID 0f6713e233f56ac723e5341e9fcff20e95e1a5aa
# Parent  a1678ab82438ca4590d05b8b7fa25e841933d215
ui.py: don't let parent and child ui objects share header and prev_header

diff -r a1678ab82438 -r 0f6713e233f5 mercurial/ui.py
--- a/mercurial/ui.py	Thu Sep 21 20:03:11 2006 -0300
+++ b/mercurial/ui.py	Thu Sep 21 20:03:12 2006 -0300
@@ -14,6 +14,8 @@ class ui(object):
     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 @@ class ui(object):
 
             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



More information about the Mercurial mailing list