eric6/Plugins/VcsPlugins/vcsMercurial/HgAnnotateDialog.py

changeset 7970
c4ee8a81584c
parent 7923
91e843545d9a
child 8143
2c730d5fd177
--- a/eric6/Plugins/VcsPlugins/vcsMercurial/HgAnnotateDialog.py	Tue Jan 12 17:19:02 2021 +0100
+++ b/eric6/Plugins/VcsPlugins/vcsMercurial/HgAnnotateDialog.py	Tue Jan 12 20:03:30 2021 +0100
@@ -7,7 +7,6 @@
 Module implementing a dialog to show the output of the hg annotate command.
 """
 
-import os
 import re
 
 from PyQt5.QtCore import Qt, QCoreApplication
@@ -75,15 +74,6 @@
         self.activateWindow()
         self.lineno = 1
         
-        dname, fname = self.vcs.splitPath(fn)
-        
-        # 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("annotate")
         args.append('--follow')
         args.append('--user')

eric ide

mercurial