Changeset 435f7adc9c6b…
Parent 0be45d66bf92…
by
Changes to 3 files · Browse files at 435f7adc9c6b Showing diff from parent 0be45d66bf92 Diff from another changeset...
@@ -109,15 +109,12 @@ main thread to pickup.
'''
def __init__(self, outputq=None, dialogq=None, responseq=None,
- parentui=None):
- super(GtkUi, self).__init__()
- if parentui:
- self.parentui = parentui.parentui or parentui
- self.cdata = ui.dupconfig(self.parentui.cdata)
- self.verbose = parentui.verbose
- self.outputq = parentui.outputq
- self.dialogq = parentui.dialogq
- self.responseq = parentui.responseq
+ src=None):
+ super(GtkUi, self).__init__(src)
+ if src:
+ self.outputq = src.outputq
+ self.dialogq = src.dialogq
+ self.responseq = src.responseq
else:
self.outputq = outputq
self.dialogq = dialogq
|
@@ -144,7 +144,7 @@ path = hglib.rootpath(os.getcwd())
if path:
try:
- lui = _ui.ui(parentui=ui)
+ lui = hasattr(_ui, 'copy') and _ui.copy() or _ui.ui(ui)
lui.readconfig(os.path.join(path, ".hg", "hgrc"))
except IOError:
pass
|
Loading...