91
91
raise errors.BundleNotSupported(version, 'unknown bundle format')
93
93
serializer = _serializers[version](version)
94
return serializer.write(source, revision_ids, forced_bases, f)
96
return serializer.write(source, revision_ids, forced_bases, f)
97
101
def write_bundle(repository, revision_id, base_revision_id, out):
105
return _write_bundle(repository, revision_id, base_revision_id, out)
110
def _write_bundle(repository, revision_id, base_revision_id, out):
99
111
if base_revision_id is NULL_REVISION:
101
113
base_ancestry = set(repository.get_ancestry(base_revision_id))