17 |
17 |
18 class HgRebaseDialog(QDialog, Ui_HgRebaseDialog): |
18 class HgRebaseDialog(QDialog, Ui_HgRebaseDialog): |
19 """ |
19 """ |
20 Class implementing a dialog to enter the data for a rebase session. |
20 Class implementing a dialog to enter the data for a rebase session. |
21 """ |
21 """ |
22 def __init__(self, tagsList, branchesList, bookmarksList=None, parent=None): |
22 def __init__(self, tagsList, branchesList, bookmarksList=None, |
|
23 parent=None): |
23 """ |
24 """ |
24 Constructor |
25 Constructor |
25 |
26 |
26 @param tagsList list of tags (list of strings) |
27 @param tagsList list of tags (list of strings) |
27 @param branchesList list of branches (list of strings) |
28 @param branchesList list of branches (list of strings) |
261 |
262 |
262 def getData(self): |
263 def getData(self): |
263 """ |
264 """ |
264 Private method to retrieve the data for the rebase session. |
265 Private method to retrieve the data for the rebase session. |
265 |
266 |
266 @return tuple with a source indicator of "S" or "B", the source revision, the |
267 @return tuple with a source indicator of "S" or "B", the source |
267 destination revision, a flag indicating to collapse, a flag indicating to |
268 revision, the destination revision, a flag indicating to collapse, |
268 keep the original changesets, a flag indicating to keep the original branch |
269 a flag indicating to keep the original changesets, a flag |
269 name and a flag indicating to detach the source (string, string, string, |
270 indicating to keep the original branch name and a flag indicating |
270 boolean, boolean, boolean, boolean) |
271 to detach the source (string, string, string, boolean, boolean, |
|
272 boolean, boolean) |
271 """ |
273 """ |
272 if self.sourceButton.isChecked(): |
274 if self.sourceButton.isChecked(): |
273 indicator = "S" |
275 indicator = "S" |
274 elif self.baseButton.isChecked(): |
276 elif self.baseButton.isChecked(): |
275 indicator = "B" |
277 indicator = "B" |