Kiln » Dependencies » Dulwich Read More
Clone URL:  
Pushed to one repository · View In Graph Contained in master-1, master-0, and 0.9.4

Add more assertions.

Changeset f4f77c8da4c9

Parent 30078ca481ce

by Jelmer Vernooij

Changes to 2 files · Browse files at f4f77c8da4c9 Showing diff from parent 30078ca481ce 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()