Plugins/VcsPlugins/vcsMercurial/HgCommitDialog.py

branch
Py2 comp.
changeset 2847
1843ef6e2656
parent 2525
8b507a9a2d40
parent 2815
53c1d1f9ec86
child 3057
10516539f238
--- a/Plugins/VcsPlugins/vcsMercurial/HgCommitDialog.py	Mon Aug 12 19:41:53 2013 +0200
+++ b/Plugins/VcsPlugins/vcsMercurial/HgCommitDialog.py	Mon Aug 12 22:21:53 2013 +0200
@@ -27,20 +27,25 @@
     accepted = pyqtSignal()
     rejected = pyqtSignal()
     
-    def __init__(self, vcs, parent=None):
+    def __init__(self, vcs, mq, parent=None):
         """
         Constructor
         
         @param vcs reference to the vcs object
+        @param mq flag indicating a queue commit (boolean)
         @param parent parent widget (QWidget)
         """
         super(HgCommitDialog, self).__init__(parent, Qt.WindowFlags(Qt.Window))
         self.setupUi(self)
         
-        if vcs.version < (2, 2):
-            self.amendCheckBox.setEnabled(False)
-        
-        self.subrepoCheckBox.setVisible(vcs.hasSubrepositories())
+        if mq:
+            self.amendCheckBox.setVisible(False)
+            self.subrepoCheckBox.setVisible(False)
+        else:
+            if vcs.version < (2, 2):
+                self.amendCheckBox.setEnabled(False)
+            
+            self.subrepoCheckBox.setVisible(vcs.hasSubrepositories())
     
     def showEvent(self, evt):
         """

eric ide

mercurial