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