Plugins/VcsPlugins/vcsMercurial/HgCommitDialog.py

changeset 1906
8487f9c2533b
parent 1855
93bf1823466a
child 2302
f29e9405c851
--- a/Plugins/VcsPlugins/vcsMercurial/HgCommitDialog.py	Sat Jun 16 18:28:31 2012 +0200
+++ b/Plugins/VcsPlugins/vcsMercurial/HgCommitDialog.py	Sun Jun 17 13:34:46 2012 +0200
@@ -37,6 +37,8 @@
         
         if vcs.version < (2, 2):
             self.amendCheckBox.setEnabled(False)
+        
+        self.subrepoCheckBox.setVisible(vcs.hasSubrepositories())
     
     def showEvent(self, evt):
         """
@@ -76,6 +78,14 @@
         """
         return self.amendCheckBox.isChecked()
     
+    def commitSubrepositories(self):
+        """
+        Public method to retrieve the state of the commit sub-repositories flag.
+        
+        @return state of the sub-repositories flag (boolean)
+        """
+        return self.subrepoCheckBox.isChecked()
+    
     def on_buttonBox_clicked(self, button):
         """
         Private slot called by a button of the button box clicked.

eric ide

mercurial