Changeset 753c53162f07…
Parent f2ad989df68e…
by
Changes to 2 files · Browse files at 753c53162f07 Showing diff from parent f2ad989df68e Diff from another changeset...
@@ -43,7 +43,7 @@ def setRepo(self, repo, branch='', fromhead=None, follow=False):
self.repo = repo
self._datacache = {}
- self.load_config()
+ self.reloadConfig()
def setFilename(self, filename):
self.filename = filename
|
@@ -162,7 +162,6 @@ if self.hasmq:
self.mqueues = self.repo.mq.series[:]
self.wd_revs = [ctx.rev() for ctx in wdctxs]
- self.authorcolor = self.repo.ui.configbool('tortoisehg', 'authorcolor')
grapher = revision_grapher(self.repo, start_rev=None,
follow=False, branch=branch)
self.graph = Graph(self.repo, grapher, self.max_file_size)
@@ -173,6 +172,23 @@ QTimer.singleShot(0, lambda: self.emit(SIGNAL('filled')))
self.timerHandle = self.startTimer(50)
+ def reloadConfig(self):
+ self.dot_radius = 8
+ self.rowheight = 20
+ self.fill_step = 500 # use hgtk logic
+ self.max_file_size = 1024*1024 # will be removed
+ self.authorcolor = self.repo.ui.configbool('tortoisehg', 'authorcolor')
+ self.updateColumns()
+
+ def updateColumns(self):
+ s = QSettings()
+ cols = s.value('workbench/columns').toStringList()
+ cols = [str(col) for col in cols]
+ if cols:
+ validcols = [col for col in cols if col in self._allcolumns]
+ self._columns = tuple(validcols)
+ self.emit(SIGNAL("layoutChanged()"))
+
def branch(self):
return self.filterbranch
@@ -235,22 +251,6 @@ def columnCount(self, parent=None):
return len(self._columns)
- def reloadConfig(self):
- self.dot_radius = 8
- self.rowheight = 20
- self.fill_step = 500 # use hgtk logic
- self.max_file_size = 1024*1024 # will be removed
- self.updateColumns()
-
- def updateColumns(self):
- s = QSettings()
- cols = s.value('workbench/columns').toStringList()
- cols = [str(col) for col in cols]
- if cols:
- validcols = [col for col in cols if col in self._allcolumns]
- self._columns = tuple(validcols)
- self.emit(SIGNAL("layoutChanged()"))
-
def maxWidthValueForColumn(self, column):
column = self._columns[column]
try:
|
Loading...