(repo, manifest)
| 84 | |
| 85 | |
| 86 | def verify_checkout(repo, manifest): |
| 87 | for file in manifest['files']: |
| 88 | if hashlib.sha256(file_bytes(repo / file['path'], file['mode'])).hexdigest() != file['sha256']: |
| 89 | raise ValueError('checkout bytes differ: ' + file['path']) |
| 90 | |
| 91 | |
| 92 | def immutable_changes_digest(repo): |