Commits

DominikP  committed a50e7f3

Improvements to SyncMq

  • Participants
  • Parent commits 508f0e1

Comments (0)

Files changed (1)

 # HG changeset patch
-# Parent 4caebca2112cff34e24d001d40e900e964ed36bd
+# Parent 7c8ecf007c306b39bc2824473c6cf19d4ba13141
 sync: support --mq option for the sync commands
 
-diff -r 4caebca2112c tortoisehg/hgqt/sync.py
---- a/tortoisehg/hgqt/sync.py	Wed Nov 16 00:57:35 2011 +0900
-+++ b/tortoisehg/hgqt/sync.py	Thu Nov 17 09:21:36 2011 +0100
+diff -r 7c8ecf007c30 tortoisehg/hgqt/sync.py
+--- a/tortoisehg/hgqt/sync.py	Thu Nov 17 14:44:44 2011 -0500
++++ b/tortoisehg/hgqt/sync.py	Fri Nov 18 08:11:13 2011 +0100
 @@ -92,7 +92,7 @@
          self.targetargs = []
  
          self.syncStarted.emit()
          url = self.currentUrl(True)
          urlu = hglib.tounicode(url)
-@@ -1546,6 +1547,11 @@
+@@ -1546,6 +1547,12 @@
          self.debugcb.setChecked(opts.get('debug', False))
          layout.addWidget(self.debugcb)
  
-+	self.mqcb = QCheckBox(
-+            _('Work on patch queue (--mq)'))
-+        self.mqcb.setChecked(opts.get('mq', False))
-+        layout.addWidget(self.mqcb)
++        if 'mq' in repo.extensions() or opts.get('mq'):
++            self.mqcb = QCheckBox(
++                _('Work on patch queue (--mq)'))
++            self.mqcb.setChecked(opts.get('mq', False))
++            layout.addWidget(self.mqcb)
 +
          form = QFormLayout()
          layout.addLayout(form)
  
-@@ -1579,6 +1585,7 @@
+@@ -1579,6 +1586,7 @@
          outopts['new-branch'] = self.newbranchcb.isChecked()
          outopts['noproxy'] = self.noproxycb.isChecked()
          outopts['debug'] = self.debugcb.isChecked()