# HG changeset patch
# User Simon Heimberg <[email protected]>
# Date 1240959403 -7200
# Node ID 3a1e377c5e1bc8218a7f21c904f9aa3e49380d1a
# Parent 1652369cd5172a049b17ce6538299cfbf6ab1543
hglib: correct several errors
correct errors introduced while updateing to new ui
diff -r 1652369cd517 -r 3a1e377c5e1b hggtk/hglib.py
--- a/hggtk/hglib.py Mon Apr 27 09:28:04 2009 +0200
+++ b/hggtk/hglib.py Mit Apr 29 00:56:43 2009 +0200
@@ -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)
------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations
Conference from O'Reilly Media. Velocity features a full day of
expert-led, hands-on workshops and two days of sessions from industry
leaders in dedicated Performance & Operations tracks. Use code vel09scf
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Tortoisehg-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop