eric6/Plugins/VcsPlugins/vcsMercurial/HgAnnotateDialog.py

changeset 7970
c4ee8a81584c
parent 7923
91e843545d9a
child 8143
2c730d5fd177
equal deleted inserted replaced
7969:62eff8b34a8d 7970:c4ee8a81584c
5 5
6 """ 6 """
7 Module implementing a dialog to show the output of the hg annotate command. 7 Module implementing a dialog to show the output of the hg annotate command.
8 """ 8 """
9 9
10 import os
11 import re 10 import re
12 11
13 from PyQt5.QtCore import Qt, QCoreApplication 12 from PyQt5.QtCore import Qt, QCoreApplication
14 from PyQt5.QtWidgets import ( 13 from PyQt5.QtWidgets import (
15 QDialog, QDialogButtonBox, QHeaderView, QTreeWidgetItem 14 QDialog, QDialogButtonBox, QHeaderView, QTreeWidgetItem
72 self.annotateList.clear() 71 self.annotateList.clear()
73 self.errorGroup.hide() 72 self.errorGroup.hide()
74 self.intercept = False 73 self.intercept = False
75 self.activateWindow() 74 self.activateWindow()
76 self.lineno = 1 75 self.lineno = 1
77
78 dname, fname = self.vcs.splitPath(fn)
79
80 # find the root of the repo
81 repodir = dname
82 while not os.path.isdir(os.path.join(repodir, self.vcs.adminDir)):
83 repodir = os.path.dirname(repodir)
84 if os.path.splitdrive(repodir)[1] == os.sep:
85 return
86 76
87 args = self.vcs.initCommand("annotate") 77 args = self.vcs.initCommand("annotate")
88 args.append('--follow') 78 args.append('--follow')
89 args.append('--user') 79 args.append('--user')
90 args.append('--date') 80 args.append('--date')

eric ide

mercurial