ui.py: use correct parentui while copying readhooks
authorAlexis S. L. Carvalho <alexis@cecm.usp.br>
Tue, 10 Oct 2006 18:43:20 -0300
changeset 3338 1b6d0fa84e0d
parent 3328 415905fad4fe
child 3339 0e3c45a74683
ui.py: use correct parentui while copying readhooks
mercurial/ui.py
--- a/mercurial/ui.py	Tue Oct 10 10:54:22 2006 -0700
+++ b/mercurial/ui.py	Tue Oct 10 18:43:20 2006 -0300
@@ -35,7 +35,7 @@
         else:
             # parentui may point to an ui object which is already a child
             self.parentui = parentui.parentui or parentui
-            self.readhooks = parentui.readhooks[:]
+            self.readhooks = self.parentui.readhooks[:]
             parent_cdata = self.parentui.cdata
             self.cdata = ConfigParser.SafeConfigParser(parent_cdata.defaults())
             # make interpolation work