13 from .Ui_SvnRevisionSelectionDialog import Ui_SvnRevisionSelectionDialog |
13 from .Ui_SvnRevisionSelectionDialog import Ui_SvnRevisionSelectionDialog |
14 |
14 |
15 |
15 |
16 class SvnRevisionSelectionDialog(QDialog, Ui_SvnRevisionSelectionDialog): |
16 class SvnRevisionSelectionDialog(QDialog, Ui_SvnRevisionSelectionDialog): |
17 """ |
17 """ |
18 Class implementing a dialog to enter the revisions for the svn diff command. |
18 Class implementing a dialog to enter the revisions for the svn diff |
|
19 command. |
19 """ |
20 """ |
20 def __init__(self, parent=None): |
21 def __init__(self, parent=None): |
21 """ |
22 """ |
22 Constructor |
23 Constructor |
23 |
24 |
61 |
62 |
62 if numberButton.isChecked(): |
63 if numberButton.isChecked(): |
63 return numberSpinBox.value() |
64 return numberSpinBox.value() |
64 elif dateButton.isChecked(): |
65 elif dateButton.isChecked(): |
65 return "{{{0}}}".format( |
66 return "{{{0}}}".format( |
66 QDateTime(dateEdit.date(), timeEdit.time()).toString(Qt.ISODate)) |
67 QDateTime(dateEdit.date(), timeEdit.time()) |
|
68 .toString(Qt.ISODate)) |
67 elif headButton.isChecked(): |
69 elif headButton.isChecked(): |
68 return "HEAD" |
70 return "HEAD" |
69 elif workingButton.isChecked(): |
71 elif workingButton.isChecked(): |
70 return "WORKING" |
72 return "WORKING" |
71 elif baseButton.isChecked(): |
73 elif baseButton.isChecked(): |