638
637
index_memo, _, parents, (method, _) = locations[key]
639
638
plain, delta_lines = self._get_group_and_delta_lines(index_memo)
641
639
label, sha1, delta = parse(delta_lines)
643
641
raise AssertionError("wrong key: %r, wanted %r" % (label, key))
644
642
chunks = apply_delta(plain, delta)
646
643
if sha_strings(chunks) != sha1:
647
644
raise AssertionError('sha1 sum did not match')
648
645
yield ChunkedContentFactory(key, parents, sha1, chunks)