Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8, 0.8.1, and 0.8.2

status: further performance optimizations

previous method could have caused two files to be diffed after refresh. This
method does at most one, and it does not continually build and destroy tuples.

Changeset a70269c3ae05

Parent 6ae44b229854

by Steve Borho

Changes to one file · Browse files at a70269c3ae05 Showing diff from parent 6ae44b229854 Diff from another changeset...

Change 1 of 1 Show Entire File hggtk/​status.py Stacked
 
610
611
612
613
 
614
615
616
617
 
 
 
 
618
619
620
621
622
623
 
624
625
626
 
610
611
612
 
613
614
615
 
 
616
617
618
619
620
621
622
623
 
 
624
625
626
627
@@ -610,17 +610,18 @@
    self.auto_check()   - selpath = (0,) + firstrow = None   for i, row in enumerate(model):   if row[FM_PATH] in reselect: - selection.select_iter(row.iter) - selpath = (i,) + if firstrow is None: + firstrow = i + else: + selection.select_iter(row.iter)   selection.handler_unblock(self.treeselid)     # clear buffer after a merge commit   if len(model): - selection.unselect_path(selpath) - selection.select_path(selpath) + selection.select_path((firstrow or 0,))   else:   if self.merging:   self.merge_diff_text.set_buffer(gtk.TextBuffer())