Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.0.2, 1.0.3, and 1.0.4

stable status: do not cache filechunks through a refresh

Seems obvious in retrospect. I noticed we get two refresh notifications
for the "Commit Preview" pane when it is selected during a refresh. Fortunately
the second call is cached and not crippling. It should be fixed later.

Closes #709

Changeset b331d227419d

Parent c769bbbf1af7

by Steve Borho

Changes to one file · Browse files at b331d227419d Showing diff from parent c769bbbf1af7 Diff from another changeset...

 
699
700
701
702
703
704
 
705
706
707
 
 
 
 
 
708
709
710
 
699
700
701
 
702
703
704
705
706
707
708
709
710
711
712
713
714
715
@@ -699,12 +699,17 @@
    self.auto_check() # may check more files   - # manually refresh partially selected files   for i, row in enumerate(model):   if row[FM_PARTIAL_SELECTED]: + # force refresh of partially selected files   self.update_hunk_model(i, self.filetree)   self.diffmodel.clear()   self.diffmodelfile = None + else: + # demand refresh of full or non selection + wfile = row[FM_PATH] + if wfile in self.filechunks: + del self.filechunks[wfile]     # recover selections   firstrow = None