Changeset b4a33f06cad8…
Parent 57dfee27f841…
by
Changes to one file · Browse files at b4a33f06cad8 Showing diff from parent 57dfee27f841 Diff from another changeset...
@@ -116,8 +116,12 @@ def __init__(self, src=None, outputq=None, dialogq=None, responseq=None,
parentui=None):
if parentui:
+ # Mercurial 1.2
+ super(GtkUi, self).__init__(parentui=parentui)
src = parentui
- super(GtkUi, self).__init__(src)
+ else:
+ # Mercurial 1.3
+ super(GtkUi, self).__init__(src)
if src:
self.outputq = src.outputq
self.dialogq = src.dialogq
@@ -302,7 +306,7 @@ config = _earlygetopt(['--config'], args)
if config:
for section, name, value in dispatch._parseconfig(config):
- self.setconfig(section, name, value)
+ ui.setconfig(section, name, value)
# check for cwd
cwd = _earlygetopt(['--cwd'], args)
|
Loading...