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

datamine: enable progress bar while both loading and annotating

I couldn't find out what is the cause, but gtklib.StatusBar doesn't work
while annotating file after loading file history. By omitting 'pbar'
argument of logview.TreeView, it works well. So, to drive progress bar
while loading history to TreeView, I call StatusBar's methods manually.

Changeset f6cc5d80a384

Parent 4de121b2ed3b

by Yuki KODAMA

Changes to one file · Browse files at f6cc5d80a384 Showing diff from parent 4de121b2ed3b Diff from another changeset...

 
443
444
445
446
447
 
448
449
450
 
580
581
582
583
 
584
585
586
 
668
669
670
 
 
671
672
673
 
702
703
704
 
705
706
707
 
737
738
739
740
741
 
742
743
744
 
443
444
445
 
 
446
447
448
449
 
579
580
581
 
582
583
584
585
 
667
668
669
670
671
672
673
674
 
703
704
705
706
707
708
709
 
739
740
741
 
 
742
743
744
745
@@ -443,8 +443,7 @@
    model.clear()   search_hbox.set_sensitive(False) - self.stbar.begin() - self.stbar.set_status_text('hg ' + ' '.join(args[2:])) + self.stbar.begin(msg='hg ' + ' '.join(args[2:]))     hbox = gtk.HBox()   lbl = gtk.Label(_('Search "%s"') % retext.split()[0]) @@ -580,7 +579,7 @@
  graphopts['filehist'] = path     # File log revision graph - graphview = LogTreeView(self.repo, 5000, self.stbar) + graphview = LogTreeView(self.repo, 5000)   graphview.connect('revisions-loaded', self.revisions_loaded, rev)   graphview.refresh(True, [path], graphopts)   graphview.set_property('rev-column-visible', True) @@ -668,6 +667,8 @@
  treeview.connect('popup-menu', self.ann_popup_menu, objs)   treeview.connect('row-activated', self.ann_row_act, objs)   + self.stbar.begin(msg=_('Loading history...')) +   def search_in_file(self, model, column, key, iter):   """Searches all fields shown in the tree when the user hits crtr+f,   not just the ones that are set via tree.set_search_column. @@ -702,6 +703,7 @@
  self.trigger_annotate(rev, wfile, objs)     def revisions_loaded(self, graphview, rev): + self.stbar.end()   graphview.set_revision_id(rev)   treeview = graphview.treeview   path, column = treeview.get_cursor() @@ -737,8 +739,7 @@
    model, rows = treeview.get_selection().get_selected_rows()   model.clear() - self.stbar.begin() - self.stbar.set_status_text(hglib.toutf('hg ' + ' '.join(args[2:]))) + self.stbar.begin(msg=hglib.toutf('hg ' + ' '.join(args[2:])))     hbox = gtk.HBox()   lbl = gtk.Label(hglib.toutf(os.path.basename(path) + '@' + str(rev)))