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: keep track of file currently displayed in diffmodel

This bug had been with us for quite a while.

Closes #1137, #1143

Changeset 374d40d80501

Parent c4fe5849059c

by Steve Borho

Changes to one file · Browse files at 374d40d80501 Showing diff from parent c4fe5849059c Diff from another changeset...

 
86
87
88
 
89
90
91
 
703
704
705
 
706
707
708
 
722
723
724
 
725
726
727
 
828
829
830
 
 
831
832
833
 
1151
1152
1153
 
1154
1155
1156
 
86
87
88
89
90
91
92
 
704
705
706
707
708
709
710
 
724
725
726
727
728
729
730
 
831
832
833
834
835
836
837
838
 
1156
1157
1158
1159
1160
1161
1162
@@ -86,6 +86,7 @@
  self.mode = 'status'   self.ready = False   self.filechunks = {} + self.diffmodelfile = None   self.status = (None,) * 7   self.status_error = None   self.preview_tab_name_label = None @@ -703,6 +704,7 @@
  if row[FM_PARTIAL_SELECTED]:   self.update_hunk_model(i, self.filetree)   self.diffmodel.clear() + self.diffmodelfile = None     # recover selections   firstrow = None @@ -722,6 +724,7 @@
  self.preview_text.set_buffer(gtk.TextBuffer())   if not is_merge:   self.diffmodel.clear() + self.diffmodelfile = None     self.filetree.show()   if self.mode == 'commit': @@ -828,6 +831,8 @@
  chunks = self.filechunks[wfile]   for chunk in chunks:   chunk.active = selected + if wfile != self.diffmodelfile: + return   for n, chunk in enumerate(chunks):   if n == 0:   continue @@ -1151,6 +1156,7 @@
  # Read this file's diffs into hunk selection model   wfile = self.filemodel[path][FM_PATH]   self.diffmodel.clear() + self.diffmodelfile = wfile   if not self.is_merge():   self.append_diff_hunks(wfile)   if len(self.diffmodel):