15 |
15 |
16 class HgBundleDialog(QDialog, Ui_HgBundleDialog): |
16 class HgBundleDialog(QDialog, Ui_HgBundleDialog): |
17 """ |
17 """ |
18 Class implementing a dialog to enter the data for a bundle operation. |
18 Class implementing a dialog to enter the data for a bundle operation. |
19 """ |
19 """ |
20 def __init__(self, tagsList, branchesList, bookmarksList=None, parent=None): |
20 def __init__(self, tagsList, branchesList, bookmarksList=None, |
|
21 parent=None): |
21 """ |
22 """ |
22 Constructor |
23 Constructor |
23 |
24 |
24 @param tagsList list of tags (list of strings) |
25 @param tagsList list of tags (list of strings) |
25 @param branchesList list of branches (list of strings) |
26 @param branchesList list of branches (list of strings) |
128 |
129 |
129 def getParameters(self): |
130 def getParameters(self): |
130 """ |
131 """ |
131 Public method to retrieve the bundle data. |
132 Public method to retrieve the bundle data. |
132 |
133 |
133 @return tuple naming the revisions, base revisions, the compression type and |
134 @return tuple naming the revisions, base revisions, the compression |
134 a flag indicating to bundle all changesets (string, string, boolean) |
135 type and a flag indicating to bundle all changesets (string, |
|
136 string, boolean) |
135 """ |
137 """ |
136 if self.multipleButton.isChecked(): |
138 if self.multipleButton.isChecked(): |
137 revs = self.multipleEdit.toPlainText().strip().splitlines() |
139 revs = self.multipleEdit.toPlainText().strip().splitlines() |
138 elif self.tagButton.isChecked(): |
140 elif self.tagButton.isChecked(): |
139 revs = [self.tagCombo.currentText()] |
141 revs = [self.tagCombo.currentText()] |