Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.6, 0.7, and 0.7.1

datamine: add source line column to annotate page

Changeset 088760f53e76

Parent 5786c91a4010

by TK Soh

Changes to one file · Browse files at 088760f53e76 Showing diff from parent 5786c91a4010 Diff from another changeset...

Change 1 of 3 Show Entire File hggtk/​datamine.py Stacked
 
28
29
30
 
31
32
33
 
447
448
449
450
 
451
452
453
454
 
455
456
457
 
610
611
612
613
 
614
615
616
 
28
29
30
31
32
33
34
 
448
449
450
 
451
452
453
454
455
456
457
458
459
 
612
613
614
 
615
616
617
618
@@ -28,6 +28,7 @@
  COL_PATH = 3   COL_COLOR = 4   COL_USER = 5 + COL_LINENUM = 6     def get_title(self):   return 'DataMining - ' + os.path.basename(self.repo.root) @@ -447,11 +448,12 @@
  treeview.connect('popup-menu', self._ann_popup_menu)   treeview.connect('row-activated', self._ann_row_act)   - results = gtk.ListStore(str, str, str, str, str, str) + results = gtk.ListStore(str, str, str, str, str, str, str)   treeview.set_model(results)     context_menu = self.ann_header_context_menu(treeview)   for title, width, col, emode, visible in ( + ('Line', 8, self.COL_LINENUM, pango.ELLIPSIZE_NONE, True),   ('Rev', 10, self.COL_REVID, pango.ELLIPSIZE_NONE, True),   ('File', 15, self.COL_PATH, pango.ELLIPSIZE_START, False),   ('User', 15, self.COL_USER, pango.ELLIPSIZE_END, False), @@ -610,7 +612,7 @@
  ctx = self.repo.changectx(rowrev)   color = colormap.get_color(ctx, curdate)   model.append((revid, toutf(text), tip, toutf(path.strip()), - color, toutf(user))) + color, toutf(user), len(model)+1))   if thread.isAlive():   return True   else: