Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

repomodel: respect tortoisehg.authorcolor setting

Changeset 40f9876688ad

Parent 11b02b732a75

by Adrian Buehlmann

Changes to one file · Browse files at 40f9876688ad Showing diff from parent 11b02b732a75 Diff from another changeset...

 
168
169
170
 
171
172
173
 
312
313
314
315
 
 
 
316
317
318
 
168
169
170
171
172
173
174
 
313
314
315
 
316
317
318
319
320
321
@@ -168,6 +168,7 @@
  self.wd_revs = [ctx.rev() for ctx in wdctxs]   self._user_colors = {}   self._branch_colors = {} + self.authorcolor = self.repo.ui.configbool('tortoisehg', 'authorcolor', False)   grapher = revision_grapher(self.repo, start_rev=None,   follow=False, branch=branch)   self.graph = Graph(self.repo, grapher, self.max_file_size) @@ -312,7 +313,9 @@
  return QVariant(_columnmap[column](self, ctx, gnode))   elif role == Qt.ForegroundRole:   if column == 'Author': #author - return QVariant(QColor(self.user_color(ctx.user()))) + if self.authorcolor: + return QVariant(QColor(self.user_color(ctx.user()))) + return nullvariant   if column == 'Branch': #branch   return QVariant(QColor(self.namedbranch_color(ctx.branch())))   elif role == Qt.DecorationRole: