b.e.tar_exporter : module documentation

Part of bzrlib.export

Export a tree to a tarball.
Function prepare_tarball_item Prepare a tarball item for exporting
Function export_tarball_generator Export tree contents to a tarball.
Function tgz_exporter_generator Export this tree to a new tar file.
Function tbz_exporter_generator Export this tree to a new tar file.
Function plain_tar_exporter_generator Export this tree to a new tar file.
Function tar_xz_exporter_generator Undocumented
Function tar_lzma_exporter_generator Export this tree to a new .tar.lzma file.
def prepare_tarball_item(tree, root, final_path, entry, force_mtime=None):
Prepare a tarball item for exporting

Returns a (tarinfo, fileobj) tuple

ParameterstreeTree to export
final_pathFinal path to place item
entryEntry to export
force_mtimeOption mtime to force, instead of using tree timestamps.
def export_tarball_generator(tree, ball, root, subdir=None, force_mtime=None):
Export tree contents to a tarball.
ParameterstreeTree to export
ballTarball to export to; it will be closed when writing is complete.
subdirSub directory to export
force_mtimeOption mtime to force, instead of using tree timestamps.
ReturnsA generator that will repeatedly produce None as each file is emitted. The entire generator must be consumed to complete writing the file.
def tgz_exporter_generator(tree, dest, root, subdir, force_mtime=None, fileobj=None):
Export this tree to a new tar file.

dest will be created holding the contents of this tree; if it already exists, it will be clobbered, like with "tar -c".

def tbz_exporter_generator(tree, dest, root, subdir, force_mtime=None, fileobj=None):
Export this tree to a new tar file.

dest will be created holding the contents of this tree; if it already exists, it will be clobbered, like with "tar -c".

def plain_tar_exporter_generator(tree, dest, root, subdir, compression=None, force_mtime=None, fileobj=None):
Export this tree to a new tar file.

dest will be created holding the contents of this tree; if it already exists, it will be clobbered, like with "tar -c".

def tar_xz_exporter_generator(tree, dest, root, subdir, force_mtime=None, fileobj=None):
Undocumented
def tar_lzma_exporter_generator(tree, dest, root, subdir, force_mtime=None, fileobj=None, compression_format='alone'):
Export this tree to a new .tar.lzma file.

dest will be created holding the contents of this tree; if it already exists, it will be clobbered, like with "tar -c".

API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.