Next: , Previous: prt, Up: Invoking CSSC Programs

3.10 rmdel

The rmdel (“Remove Delta”) command allows the last version last checked in to an sccs file to be removed again. Typically, one does this after realizing that newly checked in version doesn't compile, or doesn't work, and the fix is simple. In the author's opinion, it's almost always better to be honest about mistakes, and just make a new delta for the fixed version.

The sid of a removed delta is soon re-used by delta, usually for the fixed version.

The rmdel command takes only one option, -r, which specifies the sid of the version to be removed. This option is mandatory.

The rmdel command will fail if you hadn't checked in that revision, or if it is in use in some way. For example, rmdel fails if the specified sid is not the latest revision on its branch, or if it has been checked out for editing.

As usual, any number of sccs files can be named on the command line. The special argument - indicates that the list of files to be operated on should be read from standard input. If an argument is a directory, the rmdel command is applied to all sccs files in that directory.