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

clone: store ui instance for all queries

Changeset 7936418a4d3b

Parent eac31ef33d9e

by Steve Borho

Changes to one file · Browse files at 7936418a4d3b Showing diff from parent eac31ef33d9e Diff from another changeset...

Change 1 of 5 Show Entire File hggtk/​clone.py Stacked
 
24
25
26
 
27
28
29
 
92
93
94
95
 
96
97
98
 
157
158
159
160
 
161
162
163
 
217
218
219
220
 
221
222
223
 
276
277
278
279
280
281
 
 
 
282
283
284
 
24
25
26
27
28
29
30
 
93
94
95
 
96
97
98
99
 
158
159
160
 
161
162
163
164
 
218
219
220
 
221
222
223
224
 
277
278
279
 
 
 
280
281
282
283
284
285
@@ -24,6 +24,7 @@
  title = 'hg clone'   self.set_title(title)   + self.ui = ui.ui()   self._settings = shlib.Settings('clone')   self._recent_src = self._settings.mrul('src_paths')   self._recent_dest = self._settings.mrul('dest_paths') @@ -92,7 +93,7 @@
  vbox.pack_start(srcbox, False, False, 2)     # add pre-defined src paths to pull-down list - sympaths = [x[1] for x in ui.ui().configitems('paths')] + sympaths = [x[1] for x in self.ui.configitems('paths')]   recent = [x for x in self._recent_src]   syncsrc = [x for x in self._sync_src]   paths = list(set(sympaths + recent + syncsrc)) @@ -157,7 +158,7 @@
  option_box.pack_start(self._opt_proxy, False, False)   vbox.pack_start(option_box, False, False, 15)   - if ui.ui().config('http_proxy', 'host', ''): + if self.ui.config('http_proxy', 'host'):   self._opt_proxy.set_active(True)   else:   self._opt_proxy.set_sensitive(False) @@ -217,7 +218,7 @@
    # update drop-down list   self._srclist.clear() - sympaths = [x[1] for x in ui.ui().configitems('paths')] + sympaths = [x[1] for x in self.ui.configitems('paths')]   paths = list(set(sympaths + [x for x in self._recent_src]))   paths.sort()   for p in paths: @@ -276,9 +277,9 @@
  cmdline.append('--uncompressed')   if self._opt_pull.get_active():   cmdline.append('--pull') - if not (self._opt_proxy.get_active() and - ui.ui().config('http_proxy', 'host', '')): - cmdline += ["--config", "http_proxy.host="] + if self.ui.config('http_proxy', 'host'): + if not self._opt_proxy.get_active(): + cmdline += ["--config", "http_proxy.host="]   if remotecmd:   cmdline.append('--remotecmd')   cmdline.append(remotecmd)