Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.0.3, 2.0.4, and 2.0.5

stable chunks: catch an empty patch being applied (closes #371)

Changeset 1cf5f7ddfe66

Parent 764ee4d69ed7

by Steve Borho

Changes to one file · Browse files at 1cf5f7ddfe66 Showing diff from parent 764ee4d69ed7 Diff from another changeset...

 
335
336
337
338
339
 
 
 
 
 
 
340
341
342
 
335
336
337
 
 
338
339
340
341
342
343
344
345
346
@@ -335,8 +335,12 @@
  opts=diffopts):   buf.write(p)   buf.seek(0) - header = record.parsepatch(buf)[0] - return [header] + header.hunks + chunks = record.parsepatch(buf) + if chunks: + header = chunks[0] + return [header] + header.hunks + else: + return []     @pyqtSlot(object, object, object)   def displayFile(self, file, rev, status):