Commits

Anonymous committed 7731901

SyncMq: refactoring

  • Participants
  • Parent commits f927f00

Comments (0)

Files changed (4)

 sync: add support for the --mq option in the sync tool
 
 This patch adds a combobox to the sync options dialog if the mq extension is
-enabled. If one checks that combobox, the sync commands will work on the patch
-queue by using the --mq option. If the mq extension is disabled while the
-combobox is still checked, the mq option is removed.
-
-This patch adds the basic infrastructure and patches for each command will
-follow soon.
+enabled. If one checks that combobox, the sync commands know that they should
+work on the patch queue by setting the --mq option. If the mq extension is
+disabled while the combobox is still checked, the stored mq option choice gets
+discarded.
+
+Since every command (push, pull, incoming, outgoing) needs a lot of changes,
+this patch just adds the basic infrastructure and is the inception of the patch.
 
 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 15:50:01 2011 +0100
++++ b/tortoisehg/hgqt/sync.py	Fri Nov 18 16:01:05 2011 +0100
 @@ -92,10 +92,11 @@
          self.targetargs = []
  
+# HG changeset patch
+# Parent a21eb9eca14c2a6629bbeacbad02c1d99e111195
+sync: add support for --mq to the sync push command
+
+diff -r a21eb9eca14c tortoisehg/hgqt/sync.py
+--- a/tortoisehg/hgqt/sync.py	Fri Nov 18 15:50:01 2011 +0100
++++ b/tortoisehg/hgqt/sync.py	Fri Nov 18 15:57:11 2011 +0100
+@@ -925,7 +925,7 @@
+         self.run(['--repository', self.repo.root, 'p4pending', '--verbose'], ())
+ 
+     def pushclicked(self, confirm, rev=None, branch=None):
+-        validopts = ('force', 'new-branch', 'branch', 'rev', 'bookmark')
++        validopts = ('force', 'new-branch', 'branch', 'rev', 'bookmark', 'mq')
+         self.syncStarted.emit()
+         url = self.currentUrl(True)
+         urlu = hglib.tounicode(url)

File SyncMqPush.diff

-# HG changeset patch
-# Parent a21eb9eca14c2a6629bbeacbad02c1d99e111195
-sync: add support for the --mq option in the sync tool for the push command
-
-diff -r a21eb9eca14c -r e5edb137d9c6 tortoisehg/hgqt/sync.py
---- a/tortoisehg/hgqt/sync.py	Fri Nov 18 15:50:01 2011 +0100
-+++ b/tortoisehg/hgqt/sync.py	Fri Nov 18 15:51:02 2011 +0100
-@@ -925,7 +925,7 @@
-         self.run(['--repository', self.repo.root, 'p4pending', '--verbose'], ())
- 
-     def pushclicked(self, confirm, rev=None, branch=None):
--        validopts = ('force', 'new-branch', 'branch', 'rev', 'bookmark')
-+        validopts = ('force', 'new-branch', 'branch', 'rev', 'bookmark', 'mq')
-         self.syncStarted.emit()
-         url = self.currentUrl(True)
-         urlu = hglib.tounicode(url)
 SyncMq
-SyncMqPush.diff
+SyncMqPush
 # Placed by Bitbucket