276
276
:return: the filename of the written file.
278
278
transform.resolve_conflicts(self.shelf_transform)
280
return self._write_shelf(shelf_file, self.shelf_transform, revision_id,
284
def _write_shelf(cls, shelf_file, transform, revision_id, message=None):
279
285
serializer = pack.ContainerSerialiser()
280
286
shelf_file.write(serializer.begin())
283
288
shelf_file.write(metadata)
286
291
shelf_file.write(serializer.end())