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