Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8, 0.8.1, and 0.8.2

hglib: GtkUi accepts parentui and source and works with new hg crew

ui.copy() did not work because of the differen argument order of __init__()

Changeset 1828121a6b2d

Parent a06e45962f68

by Simon Heimberg

Changes to one file · Browse files at 1828121a6b2d Showing diff from parent a06e45962f68 Diff from another changeset...

Change 1 of 2 Show Entire File hggtk/​hglib.py Stacked
 
113
114
115
116
117
 
 
 
 
118
119
120
 
180
181
182
183
 
184
185
186
 
113
114
115
 
 
116
117
118
119
120
121
122
 
182
183
184
 
185
186
187
188
@@ -113,8 +113,10 @@
  Instead, it places output and dialog requests onto queues for the   main thread to pickup.   ''' - def __init__(self, outputq=None, dialogq=None, responseq=None, - src=None): + def __init__(self, src=None, outputq=None, dialogq=None, responseq=None, + parentui=None): + if parentui: + src = parentui   super(GtkUi, self).__init__(src)   if src:   self.outputq = src.outputq @@ -180,7 +182,7 @@
  self.outputq = Queue.Queue()   self.dialogq = Queue.Queue()   self.responseq = Queue.Queue() - self.ui = GtkUi(self.outputq, self.dialogq, self.responseq) + self.ui = GtkUi(None, self.outputq, self.dialogq, self.responseq)   self.args = args   self.ret = None   self.postfunc = postfunc