|
NAMEbk partition - transform a single repository into a nested collection SYNOPSISbk partition [options] [-Ccomponents | -@<url>] from to DESCRIPTIONThe partition command is used to transform a single large repository to product composed of a collection of component repositories. The collection of component files is determined by the component list file, which is a list of directories which will become component repository roots. To get the most flexibility out of using a partitioned repository, the partition should be done such that few, if any, files remain in the top level product. Best is if the top level product repository is only a collection of component repositories. Partition will prune all deleted and missing files, and create an empty gone file. Any file that used to be in one component and was moved to another component will only appear in the most recent component. As part of partition, it is possible to remove the record of some files that were accidentally added along the way, and or have since been removed and added to the gone file. A list of keys to be removed is stored in a prunelist file, one key per line. To transform many repositories, first transform one into a layout you like. Then transform the others, using the -@url option naming the first post-partition repository. Each repository partitioned after the first must contain all of the csets of the first repository. OPTIONS
EXAMPLESuppose there is a repository which has two major subsections, called doc and src respectively. The repository has grown to be too large and people working on one part may not need the other part. The following steps would convert it to a product comprising many components, such as 'doc' and 'src'. Create a file which defines the partition boundaries. Call it components: Then run the command to transform the original repo, called standalone in this example, into a nested collection of repositories, called nested. To partition another repository, you can reference the first partition you did instead of passing in the component list. Standalone2 must be a superset of standalone for the partition to work.
CATEGORYNested
|