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()] |