eric6.Plugins.VcsPlugins.vcsMercurial.CloseheadExtension.HgCloseHeadSelectionDialog
Module implementing a dialog to select the heads to be closed.
Global Attributes
Classes
Functions
HgCloseHeadSelectionDialog
Class implementing a dialog to select the heads to be closed.
Derived from
QDialog, Ui_HgCloseHeadSelectionDialog
Class Attributes
Class Methods
Methods
Static Methods
HgCloseHeadSelectionDialog (Constructor)
HgCloseHeadSelectionDialog(vcs, ppath, parent=None)
Constructor
- vcs (Hg)
-
reference to the VCS object
- ppath (str)
-
directory containing the repository
- parent (QWidget)
-
reference to the parent widget
HgCloseHeadSelectionDialog.__getHeads
__getHeads(vcs, ppath)
Private method to get the open heads.
- vcs (Hg)
-
reference to the VCS object
- ppath (str)
-
directory containing the repository
- Returns:
-
list of tuples containing the revision and the corresponding
branch name
- Return Type:
-
list of tuples of (str, str)
HgCloseHeadSelectionDialog.getData
getData()
Public method to retrieve the entered data.
- Returns:
-
tuple containing a list of selected revisions and the commit
message
- Return Type:
-
tuple of (list of str, str)
HgCloseHeadSelectionDialog.on_headsList_itemSelectionChanged
on_headsList_itemSelectionChanged()
Private slot handling changes of the selection.