276
276
self.decorate_bundle(payload)
277
277
self.db.piles.save(payload)
279
287
def decorate_bundle(self, bundle_data):
280
288
branch_dir = fetch_branch(self.working_dir, bundle_data, self.log)
281
289
branch = Branch.open(branch_dir)
282
290
revno = branch.revision_id_to_revno(bundle_data['commit'])
283
291
tree = branch.repository.revision_tree(bundle_data['commit'])
285
293
bundle_data['file_hashes'] = self.slurp_files(tree)
287
295
def slurp_files(self, tree):