15 |
15 |
16 class HgRebaseDialog(QDialog, Ui_HgRebaseDialog): |
16 class HgRebaseDialog(QDialog, Ui_HgRebaseDialog): |
17 """ |
17 """ |
18 Class implementing a dialog to enter the data for a rebase session. |
18 Class implementing a dialog to enter the data for a rebase session. |
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) |
259 |
260 |
260 def getData(self): |
261 def getData(self): |
261 """ |
262 """ |
262 Private method to retrieve the data for the rebase session. |
263 Private method to retrieve the data for the rebase session. |
263 |
264 |
264 @return tuple with a source indicator of "S" or "B", the source revision, the |
265 @return tuple with a source indicator of "S" or "B", the source |
265 destination revision, a flag indicating to collapse, a flag indicating to |
266 revision, the destination revision, a flag indicating to collapse, |
266 keep the original changesets, a flag indicating to keep the original branch |
267 a flag indicating to keep the original changesets, a flag |
267 name and a flag indicating to detach the source (string, string, string, |
268 indicating to keep the original branch name and a flag indicating |
268 boolean, boolean, boolean, boolean) |
269 to detach the source (string, string, string, boolean, boolean, |
|
270 boolean, boolean) |
269 """ |
271 """ |
270 if self.sourceButton.isChecked(): |
272 if self.sourceButton.isChecked(): |
271 indicator = "S" |
273 indicator = "S" |
272 elif self.baseButton.isChecked(): |
274 elif self.baseButton.isChecked(): |
273 indicator = "B" |
275 indicator = "B" |