Plugins/VcsPlugins/vcsMercurial/HgBundleDialog.py

changeset 945
8cd4d08fa9f6
parent 791
9ec2ac20e54e
child 1017
919147f2b518
equal deleted inserted replaced
944:1b59c4ba121e 945:8cd4d08fa9f6
9 9
10 from PyQt4.QtGui import QDialog 10 from PyQt4.QtGui import QDialog
11 11
12 from .Ui_HgBundleDialog import Ui_HgBundleDialog 12 from .Ui_HgBundleDialog import Ui_HgBundleDialog
13 13
14
14 class HgBundleDialog(QDialog, Ui_HgBundleDialog): 15 class HgBundleDialog(QDialog, Ui_HgBundleDialog):
15 """ 16 """
16 Class implementing a dialog to enter the data for a bundle operation. 17 Class implementing a dialog to enter the data for a bundle operation.
17 """ 18 """
18 def __init__(self, tagsList, branchesList, parent = None): 19 def __init__(self, tagsList, branchesList, parent=None):
19 """ 20 """
20 Constructor 21 Constructor
21 22
22 @param tagsList list of tags (list of strings) 23 @param tagsList list of tags (list of strings)
23 @param branchesList list of branches (list of strings) 24 @param branchesList list of branches (list of strings)
32 33
33 def getParameters(self): 34 def getParameters(self):
34 """ 35 """
35 Public method to retrieve the bundle data. 36 Public method to retrieve the bundle data.
36 37
37 @return tuple naming the revision, the compression type and a flag indicating 38 @return tuple naming the revision, the compression type and a flag indicating
38 to bundle all changesets (string, string, boolean) 39 to bundle all changesets (string, string, boolean)
39 """ 40 """
40 if self.numberButton.isChecked(): 41 if self.numberButton.isChecked():
41 rev = str(self.numberSpinBox.value()) 42 rev = str(self.numberSpinBox.value())
42 elif self.idButton.isChecked(): 43 elif self.idButton.isChecked():

eric ide

mercurial