src/eric7/Plugins/VcsPlugins/vcsGit/GitBlameDialog.py

branch
eric7
changeset 9616
13aa04c979d7
parent 9473
3f23dbf37dbe
child 9653
e67609152c5e
equal deleted inserted replaced
9615:fbb3616f6bd3 9616:13aa04c979d7
98 self.activateWindow() 98 self.activateWindow()
99 99
100 dname, fname = self.vcs.splitPath(fn) 100 dname, fname = self.vcs.splitPath(fn)
101 101
102 # find the root of the repo 102 # find the root of the repo
103 repodir = dname 103 repodir = self.vcs.findRepoRoot(dname)
104 while not os.path.isdir(os.path.join(repodir, self.vcs.adminDir)): 104 if not repodir:
105 repodir = os.path.dirname(repodir) 105 return
106 if os.path.splitdrive(repodir)[1] == os.sep:
107 return
108 106
109 args = self.vcs.initCommand("blame") 107 args = self.vcs.initCommand("blame")
110 args.append( 108 args.append(
111 "--abbrev={0}".format(self.vcs.getPlugin().getPreferences("CommitIdLength")) 109 "--abbrev={0}".format(self.vcs.getPlugin().getPreferences("CommitIdLength"))
112 ) 110 )

eric ide

mercurial