eric6/Plugins/VcsPlugins/vcsMercurial/HgBookmarksInOutDialog.py

changeset 7970
c4ee8a81584c
parent 7923
91e843545d9a
child 7973
e836d196e888
diff -r 62eff8b34a8d -r c4ee8a81584c eric6/Plugins/VcsPlugins/vcsMercurial/HgBookmarksInOutDialog.py
--- a/eric6/Plugins/VcsPlugins/vcsMercurial/HgBookmarksInOutDialog.py	Tue Jan 12 17:19:02 2021 +0100
+++ b/eric6/Plugins/VcsPlugins/vcsMercurial/HgBookmarksInOutDialog.py	Tue Jan 12 20:03:30 2021 +0100
@@ -7,8 +7,8 @@
 Module implementing a dialog to show a list of incoming or outgoing bookmarks.
 """
 
-import os
-
+##import os
+##
 from PyQt5.QtCore import Qt, QCoreApplication
 from PyQt5.QtWidgets import (
     QDialog, QDialogButtonBox, QHeaderView, QTreeWidgetItem
@@ -71,11 +71,10 @@
         
         e.accept()
     
-    def start(self, path):
+    def start(self):
         """
         Public slot to start the bookmarks command.
         
-        @param path name of directory to be listed (string)
         @exception ValueError raised to indicate an invalid dialog mode
         """
         self.errorGroup.hide()
@@ -83,15 +82,6 @@
         self.intercept = False
         self.activateWindow()
         
-        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
-        
         if self.mode == self.INCOMING:
             args = self.vcs.initCommand("incoming")
         elif self.mode == self.OUTGOING:

eric ide

mercurial