eric6/Plugins/VcsPlugins/vcsMercurial/HgSummaryDialog.py

changeset 7970
c4ee8a81584c
parent 7923
91e843545d9a
child 8143
2c730d5fd177
--- a/eric6/Plugins/VcsPlugins/vcsMercurial/HgSummaryDialog.py	Tue Jan 12 17:19:02 2021 +0100
+++ b/eric6/Plugins/VcsPlugins/vcsMercurial/HgSummaryDialog.py	Tue Jan 12 20:03:30 2021 +0100
@@ -8,8 +8,6 @@
 directory state.
 """
 
-import os
-
 from PyQt5.QtCore import pyqtSlot
 from PyQt5.QtWidgets import QDialog, QDialogButtonBox
 
@@ -40,11 +38,10 @@
         self.vcs = vcs
         self.vcs.committed.connect(self.__committed)
     
-    def start(self, path, mq=False, largefiles=False):
+    def start(self, mq=False, largefiles=False):
         """
         Public slot to start the hg summary command.
         
-        @param path path name of the working directory (string)
         @param mq flag indicating to show the queue status as well (boolean)
         @param largefiles flag indicating to show the largefiles status as
             well (boolean)
@@ -53,7 +50,6 @@
         self.refreshButton.setEnabled(False)
         self.summary.clear()
         
-        self.__path = path
         self.__mq = mq
         self.__largefiles = largefiles
         
@@ -65,13 +61,6 @@
         if self.__largefiles:
             args.append("--large")
         
-        # find the root of the repo
-        repodir = self.__path
-        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
-        
         client = self.vcs.getClient()
         output, error = client.runcommand(args)
         if error:
@@ -97,7 +86,7 @@
         """
         Private slot to refresh the status display.
         """
-        self.start(self.__path, mq=self.__mq)
+        self.start(mq=self.__mq)
     
     def __committed(self):
         """

eric ide

mercurial