Changeset 18b9182523ec…
Parent 7ee0afbda823…
by
Changes to one file · Browse files at 18b9182523ec Showing diff from parent 7ee0afbda823 Diff from another changeset...
@@ -97,9 +97,10 @@ val = s.value('sync/' + opt, None).toBool()
if val:
self.opts[opt] = val
- val = str(s.value('sync/remotecmd', None).toString())
- if val:
- self.opts['remotecmd'] = val
+ for opt in ('remotecmd', 'branch'):
+ val = str(s.value('sync/' + opt, None).toString())
+ if val:
+ self.opts[opt] = val
self.repo.configChanged.connect(self.configChanged)
@@ -1557,6 +1558,12 @@ self.remotele.setText(hglib.tounicode(opts['remotecmd']))
layout.addRow(lbl, self.remotele)
+ lbl = QLabel(_('Branch:'))
+ self.branchle = QLineEdit()
+ if opts.get('branch'):
+ self.branchle.setText(hglib.tounicode(opts['branch']))
+ layout.addRow(lbl, self.branchle)
+
BB = QDialogButtonBox
bb = QDialogButtonBox(BB.Ok|BB.Cancel)
bb.accepted.connect(self.accept)
@@ -1566,7 +1573,8 @@
def accept(self):
outopts = {}
- for name, le in (('remotecmd', self.remotele),):
+ for name, le in (('remotecmd', self.remotele),
+ ('branch', self.branchle)):
outopts[name] = hglib.fromunicode(le.text()).strip()
outopts['subrepos'] = self.subrepocb.isChecked()
|
Loading...