Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.0.4, 2.0.5, and 2.1

stable sync: display currently selected options

This is probably something we want to do in the other dialogs that have
options selectable by pop-up windows.

Changeset 475eafd798bb

Parent 2d244bbc2a04

by Steve Borho

Changes to one file · Browse files at 475eafd798bb Showing diff from parent 2d244bbc2a04 Diff from another changeset...

 
151
152
153
 
 
 
 
 
 
 
 
 
 
154
155
156
 
323
324
325
 
326
327
328
 
387
388
389
 
 
 
 
 
 
 
 
 
 
390
391
392
 
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
 
333
334
335
336
337
338
339
 
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
@@ -151,6 +151,16 @@
  hbox = QHBoxLayout()   hbox.setContentsMargins(0, 0, 0, 0)   layout.addLayout(hbox) + self.optionshdrlabel = lbl = QLabel(_('<b>Selected Options:</b>')) + hbox.addWidget(lbl) + self.optionslabel = QLabel() + self.optionslabel.setAcceptDrops(False) + hbox.addWidget(self.optionslabel) + hbox.addStretch() + + hbox = QHBoxLayout() + hbox.setContentsMargins(0, 0, 0, 0) + layout.addLayout(hbox)   hbox.addWidget(QLabel(_('<b>Remote Repository:</b>')))   self.urllabel = QLabel()   self.urllabel.setTextInteractionFlags(Qt.TextSelectableByMouse) @@ -323,6 +333,7 @@
  dlg.setWindowModality(Qt.WindowModal)   if dlg.exec_() == QDialog.Accepted:   self.opts.update(dlg.outopts) + self.refreshUrl()     def reload(self):   # Refresh configured paths @@ -387,6 +398,16 @@
  w.setDisabled(schemeIndex == 0)   self.securebutton.setHidden(schemeIndex != 3)   + opts = [] + for opt, value in self.opts.iteritems(): + if value is True: + opts.append('--'+opt) + elif value: + opts.append('--'+opt+'='+value) + self.optionslabel.setText(' '.join(opts)) + self.optionslabel.setVisible(bool(opts)) + self.optionshdrlabel.setVisible(bool(opts)) +   def currentUrl(self, hidepw):   scheme = _schemes[self.schemecombo.currentIndex()]   if scheme == 'local':