Commits

Steve Borho committed 1d2c31a

sync: add --debug to options dialog (refs #243)

Users often need to debug synchronization problems.

  • Participants
  • Parent commits bbe09b6
  • Branches stable

Comments (0)

Files changed (1)

tortoisehg/hgqt/sync.py

             cmdline = self.applyTargetOption(cmdline)
         if self.opts.get('noproxy'):
             cmdline += ['--config', 'http_proxy.host=']
+        if self.opts.get('debug'):
+            cmdline.append('--debug')
 
         cururl = self.currentUrl(False)
         if not cururl:
             _('Allow push of a new branch (--new-branch)'))
         self.newbranchcb.setChecked(opts.get('new-branch', False))
         layout.addRow(self.newbranchcb, None)
+
         self.forcecb = QCheckBox(
             _('Force push or pull (override safety checks, --force)'))
         self.forcecb.setChecked(opts.get('force', False))
         proxy = self.repo.ui.config('http_proxy', 'host')
         self.noproxycb.setEnabled(bool(proxy))
 
+        self.debugcb = QCheckBox(
+            _('Emit debugging output (--debug)'))
+        self.debugcb.setChecked(opts.get('debug', False))
+        layout.addRow(self.debugcb, None)
+
         lbl = QLabel(_('Remote command:'))
         self.remotele = QLineEdit()
         if opts.get('remotecmd'):
         outopts['force'] = self.forcecb.isChecked()
         outopts['new-branch'] = self.newbranchcb.isChecked()
         outopts['noproxy'] = self.noproxycb.isChecked()
+        outopts['debug'] = self.debugcb.isChecked()
 
         self.outopts = outopts
         QDialog.accept(self)