diff -r 62eff8b34a8d -r c4ee8a81584c eric6/Plugins/VcsPlugins/vcsMercurial/CloseheadExtension/HgCloseHeadSelectionDialog.py --- a/eric6/Plugins/VcsPlugins/vcsMercurial/CloseheadExtension/HgCloseHeadSelectionDialog.py Tue Jan 12 17:19:02 2021 +0100 +++ b/eric6/Plugins/VcsPlugins/vcsMercurial/CloseheadExtension/HgCloseHeadSelectionDialog.py Tue Jan 12 20:03:30 2021 +0100 @@ -17,14 +17,12 @@ """ Class implementing a dialog to select the heads to be closed. """ - def __init__(self, vcs, ppath, parent=None): + def __init__(self, vcs, parent=None): """ Constructor @param vcs reference to the VCS object @type Hg - @param ppath directory containing the repository - @type str @param parent reference to the parent widget @type QWidget """ @@ -34,18 +32,16 @@ self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True) self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(False) - heads = self.__getHeads(vcs, ppath) + heads = self.__getHeads(vcs) for revision, branch in heads: QTreeWidgetItem(self.headsList, [revision, branch]) - def __getHeads(self, vcs, ppath): + def __getHeads(self, vcs): """ Private method to get the open heads. @param vcs reference to the VCS object @type Hg - @param ppath directory containing the repository - @type str @return list of tuples containing the revision and the corresponding branch name @rtype list of tuples of (str, str)