Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.9, 0.9.1, and 0.9.1.1

logview: simplify default row color algorithm

Changeset b16d3d6172a1

Parent 1d6d86c6df21

by Steve Borho

Changes to one file · Browse files at b16d3d6172a1 Showing diff from parent 1d6d86c6df21 Diff from another changeset...

 
375
376
377
378
 
379
380
381
 
385
386
387
388
389
390
391
392
 
560
561
562
 
 
 
563
564
565
 
375
376
377
 
378
379
380
381
 
385
386
387
 
 
388
389
390
 
558
559
560
561
562
563
564
565
566
@@ -375,7 +375,7 @@
  # If user has configured authorcolor in [tortoisehg], color   # rows by author matches   self.author_pats = [] - self.color_func = self.text_color_orig + self.color_func = self.text_color_default     if self.repo is not None:   for k, v in self.repo.ui.configitems('tortoisehg'): @@ -385,8 +385,6 @@
  if self.author_pats or self.repo.ui.configbool('tortoisehg',   'authorcolor'):   self.color_func = self.text_color_author - else: - self.color_func = self.text_color_orig     def construct_treeview(self):   self.treeview = gtk.TreeView() @@ -560,6 +558,9 @@
  else:   return 'black'   + def text_color_default(self, parents, rev, author): + return int(rev) >= self.origtip and 'darkgreen' or 'black' +   colors = '''black blue deeppink mediumorchid blue burlywood4 goldenrod   slateblue red2 navy dimgrey'''.split()   color_cache = {}