Kiln » Dependencies » Dulwich Read More
Clone URL:  
Pushed to one repository · View In Graph Contained in master

Add more assertions.

Changeset cdc63bb9d7d2

Parent 6391a737031c

by Jelmer Vernooij

Changes to 2 files · Browse files at cdc63bb9d7d2 Showing diff from parent 6391a737031c Diff from another changeset...

 
476
477
478
 
479
480
481
 
476
477
478
479
480
481
482
@@ -476,6 +476,7 @@
    # Complete the pack.   for ext_sha in indexer.ext_refs(): + assert len(ext_sha) == 20   type_num, data = self.get_raw(ext_sha)   offset = f.tell()   crc32 = write_pack_object(f, type_num, data, sha=new_sha)
 
230
231
232
 
233
234
235
 
230
231
232
233
234
235
236
@@ -230,6 +230,7 @@
  expected = []   for i in xrange(num_objects):   type_num, data, sha = full_objects[i] + assert len(sha) == 20   expected.append((offsets[i], type_num, data, sha, crc32s[i]))     sf.write_sha()