Plugins/VcsPlugins/vcsMercurial/HgBundleDialog.py

branch
Py2 comp.
changeset 3057
10516539f238
parent 2525
8b507a9a2d40
parent 3008
7848489bcb92
child 3058
0a02c433f52d
equal deleted inserted replaced
3056:9986ec0e559a 3057:10516539f238
17 17
18 class HgBundleDialog(QDialog, Ui_HgBundleDialog): 18 class HgBundleDialog(QDialog, Ui_HgBundleDialog):
19 """ 19 """
20 Class implementing a dialog to enter the data for a bundle operation. 20 Class implementing a dialog to enter the data for a bundle operation.
21 """ 21 """
22 def __init__(self, tagsList, branchesList, bookmarksList=None, parent=None): 22 def __init__(self, tagsList, branchesList, bookmarksList=None,
23 parent=None):
23 """ 24 """
24 Constructor 25 Constructor
25 26
26 @param tagsList list of tags (list of strings) 27 @param tagsList list of tags (list of strings)
27 @param branchesList list of branches (list of strings) 28 @param branchesList list of branches (list of strings)
130 131
131 def getParameters(self): 132 def getParameters(self):
132 """ 133 """
133 Public method to retrieve the bundle data. 134 Public method to retrieve the bundle data.
134 135
135 @return tuple naming the revisions, base revisions, the compression type and 136 @return tuple naming the revisions, base revisions, the compression
136 a flag indicating to bundle all changesets (string, string, boolean) 137 type and a flag indicating to bundle all changesets (string,
138 string, boolean)
137 """ 139 """
138 if self.multipleButton.isChecked(): 140 if self.multipleButton.isChecked():
139 revs = self.multipleEdit.toPlainText().strip().splitlines() 141 revs = self.multipleEdit.toPlainText().strip().splitlines()
140 elif self.tagButton.isChecked(): 142 elif self.tagButton.isChecked():
141 revs = [self.tagCombo.currentText()] 143 revs = [self.tagCombo.currentText()]

eric ide

mercurial