10 from PyQt4.QtCore import pyqtSlot, QDateTime |
10 from PyQt4.QtCore import pyqtSlot, QDateTime |
11 from PyQt4.QtGui import QDialog, QDialogButtonBox |
11 from PyQt4.QtGui import QDialog, QDialogButtonBox |
12 |
12 |
13 from .Ui_HgBackoutDialog import Ui_HgBackoutDialog |
13 from .Ui_HgBackoutDialog import Ui_HgBackoutDialog |
14 |
14 |
|
15 |
15 class HgBackoutDialog(QDialog, Ui_HgBackoutDialog): |
16 class HgBackoutDialog(QDialog, Ui_HgBackoutDialog): |
16 """ |
17 """ |
17 Class implementing a dialog to enter the data for a backout operation. |
18 Class implementing a dialog to enter the data for a backout operation. |
18 """ |
19 """ |
19 def __init__(self, tagsList, branchesList, parent = None): |
20 def __init__(self, tagsList, branchesList, parent=None): |
20 """ |
21 """ |
21 Constructor |
22 Constructor |
22 |
23 |
23 @param tagsList list of tags (list of strings) |
24 @param tagsList list of tags (list of strings) |
24 @param branchesList list of branches (list of strings) |
25 @param branchesList list of branches (list of strings) |
47 |
48 |
48 def getParameters(self): |
49 def getParameters(self): |
49 """ |
50 """ |
50 Public method to retrieve the backout data. |
51 Public method to retrieve the backout data. |
51 |
52 |
52 @return tuple naming the revision, a flag indicating a |
53 @return tuple naming the revision, a flag indicating a |
53 merge, the commit date, the commit user and a commit message |
54 merge, the commit date, the commit user and a commit message |
54 (string, boolean, string, string, string) |
55 (string, boolean, string, string, string) |
55 """ |
56 """ |
56 if self.numberButton.isChecked(): |
57 if self.numberButton.isChecked(): |
57 rev = str(self.numberSpinBox.value()) |
58 rev = str(self.numberSpinBox.value()) |