Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.1, 1.1.1, and 1.1.2

stable status: do not add empty chunk lists to self.filechunks

closes #1301

Changeset c31431d74e04

Parent 69d182a2f133

by Steve Borho

Changes to one file · Browse files at c31431d74e04 Showing diff from parent 69d182a2f133 Diff from another changeset...

 
1091
1092
1093
1094
1095
1096
 
 
 
 
1097
1098
1099
 
1091
1092
1093
 
 
 
1094
1095
1096
1097
1098
1099
1100
@@ -1091,9 +1091,10 @@
  chunks = self.filechunks[wfile]   else:   chunks = self.read_file_chunks(wfile) - for c in chunks: - c.active = True - self.filechunks[wfile] = chunks + if chunks: + for c in chunks: + c.active = True + self.filechunks[wfile] = chunks   for i, chunk in enumerate(chunks):   if i == 0:   chunk.write(buf)