Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9.2, 1.9.3, and 2.0

chunks: mark patchctx invalidated after each successful write

Changeset 296d0d39d343

Parent 481890bf23b6

by Steve Borho

Changes to one file · Browse files at 296d0d39d343 Showing diff from parent 481890bf23b6 Diff from another changeset...

 
168
169
170
 
171
172
173
 
245
246
247
 
248
249
250
 
285
286
287
 
288
289
290
 
168
169
170
171
172
173
174
 
246
247
248
249
250
251
252
 
287
288
289
290
291
292
293
@@ -168,6 +168,7 @@
  fp.rename()   finally:   del fp + ctx.invalidate()   self.fileModified.emit()   else:   path = repo.wjoin(self.currentFile) @@ -245,6 +246,7 @@
  for chunk in ctx._files[wfile]:   chunk.write(fp)   fp.rename() + ctx.invalidate()   self.fileModified.emit()   return True   finally: @@ -285,6 +287,7 @@
  fp.rename()   finally:   del fp + ctx.invalidate()   else:   repo.thgbackup(repo.wjoin(wfile))   try: