diff -r c4ee8a81584c -r ff2971513d6d eric6/Plugins/VcsPlugins/vcsMercurial/QueuesExtension/HgQueuesDefineGuardsDialog.py --- a/eric6/Plugins/VcsPlugins/vcsMercurial/QueuesExtension/HgQueuesDefineGuardsDialog.py Tue Jan 12 20:03:30 2021 +0100 +++ b/eric6/Plugins/VcsPlugins/vcsMercurial/QueuesExtension/HgQueuesDefineGuardsDialog.py Wed Jan 13 17:46:13 2021 +0100 @@ -7,8 +7,6 @@ Module implementing a dialog to define guards for patches. """ -import os - from PyQt5.QtCore import pyqtSlot, Qt, QCoreApplication from PyQt5.QtWidgets import ( QDialog, QDialogButtonBox, QAbstractButton, QListWidgetItem @@ -80,22 +78,10 @@ e.accept() - def start(self, path): + def start(self): """ Public slot to start the list command. - - @param path name of directory to be listed (string) """ - dname, fname = self.vcs.splitPath(path) - - # find the root of the repo - repodir = dname - while not os.path.isdir(os.path.join(repodir, self.vcs.adminDir)): - repodir = os.path.dirname(repodir) - if os.path.splitdrive(repodir)[1] == os.sep: - return - - self.__repodir = repodir self.on_patchSelector_activated("") @pyqtSlot(str) @@ -125,7 +111,7 @@ self.patchNameLabel.setText("") self.guardCombo.clear() - guardsList = self.extension.getGuardsList(self.__repodir) + guardsList = self.extension.getGuardsList() self.guardCombo.addItems(guardsList) self.guardCombo.setEditText("")