changeset 3338:1b6d0fa84e0d

ui.py: use correct parentui while copying readhooks
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Tue, 10 Oct 2006 18:43:20 -0300
parents 415905fad4fe
children 0e3c45a74683
files mercurial/ui.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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