Pack Partition

Command line:
tlapi ‑cPACK [‑znPack] sPart
Library call:
nStatus = TLpack (sPart, nPack)
Scripting call:
nStatus = Pack (nPack)

Function

Packs a TopLeaf partition. This reduces the number of release directories held within the TopLeaf data directory to a specified minimum.

Arguments

sPart

The path of the partition to be packed. The scripting call uses the Partition property to determine the partition to use.

nPack

This specifies the number of releases to retain in addition to the releases containing the published and update phases.

If this is omitted, or less than or equal to zero, the value specified in the partition properties is used.

For additional command line arguments see “Common Flag Arguments”.

Notes

The release immediately before the published release is always retained. This means that there are always at least 2 releases present, or 3 if there is an update release.

The extra release is retained to permit an undo of Commit, or Next Update that have progressed beyond two updates.

Examples

Command line:

tlapi ‑cPACK manuals/topix/volume1

Library call:

status = TLpack("manuals/topix/volume1", 0L);

Scripting call:

status = topleaf.Pack(4);