eric6/Plugins/VcsPlugins/vcsMercurial/GpgExtension/HgGpgSignaturesDialog.py

changeset 7970
c4ee8a81584c
parent 7923
91e843545d9a
child 8143
2c730d5fd177
--- a/eric6/Plugins/VcsPlugins/vcsMercurial/GpgExtension/HgGpgSignaturesDialog.py	Tue Jan 12 17:19:02 2021 +0100
+++ b/eric6/Plugins/VcsPlugins/vcsMercurial/GpgExtension/HgGpgSignaturesDialog.py	Tue Jan 12 20:03:30 2021 +0100
@@ -7,7 +7,6 @@
 Module implementing a dialog showing signed changesets.
 """
 
-import os
 import re
 
 from PyQt5.QtCore import pyqtSlot, Qt, QCoreApplication
@@ -53,27 +52,15 @@
         
         e.accept()
     
-    def start(self, path):
+    def start(self):
         """
         Public slot to start the list command.
-        
-        @param path name of directory (string)
         """
         self.errorGroup.hide()
         
         self.intercept = False
         self.activateWindow()
         
-        self.__path = path
-        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
-        
         args = self.vcs.initCommand("sigs")
         
         out, err = self.__hgClient.runcommand(args)
@@ -203,8 +190,7 @@
             self.signaturesList.selectedItems()[0].text(0)
             .split(":")[0].strip()
         )
-        self.vcs.getExtensionObject("gpg").hgGpgVerifySignatures(
-            self.__path, rev)
+        self.vcs.getExtensionObject("gpg").hgGpgVerifySignatures(rev)
     
     @pyqtSlot(str)
     def on_categoryCombo_activated(self, txt):

eric ide

mercurial