Next: , Previous: config, Up: Subcommands



6.15 Moving and Copying Projects

Sometimes, it is desirable to package up and move or copy an entire prcs project, rather than a single version of a project (discussed elsewhere in Importing Project Versions.) One can move an entire repository using the usual UNIX tools for copying, moving, distributing, and packaging directories. For individual projects, it is preferable to use the package and unpackage subcommands in order to insure that all of prcs's internal structure is maintained.

— Command: prcs package project packagedfile

ADDITIONAL OPTIONS: -z

Creates a plain file named packagedfile, containing all the data in project. A value of - for packagedfile denotes the standard output. With -z, the output file is compressed (in gzip format).

— Command: prcs unpackage packagedfile [project]

Creates project in the repository to be a copy of the project from which packagedfile was created. The file packagedfile must have been created by prcs package (with or without the -z option). If project is omitted, it defaults to the name of the project from which packagedfile was created. If project exists in the repository, the user is prompted to delete the old copy from the repository. A value of - for packagedfile denotes the standard input. With -n, it merely reports the name of the project that would be added.

If project differs from the original name as stored in packagedfile, the project is renamed. Renaming a project revises the history of the project; the result is as if the project had always been named project, with one exception: When checked out, project descriptor will have a comment inserted making note of the original project name.