[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]

Commands Reference, Volume 4


rmdel Command

Purpose

Removes a delta from a SCCS file.

Syntax

rmdel -r SID File ...

Description

The rmdel command removes the delta specified by the SID variable from each Source Code Control System (SCCS) file indicated in the File parameter. You can remove only the most recently created delta in a branch, or the latest trunk delta if it has no branches. In addition, the SID you specify must not be a version currently being edited for the purpose of making a delta. To remove a delta, you must either own the SCCS file and the directory, or you must have created the delta you want to remove.

If you specify a directory for the File parameter, the rmdel command performs the requested actions on all SCCS files (those with the s. prefix). If you specify a - (dash) for the File parameter, the rmdel command reads standard input and interprets each line as the name of an SCCS file. The rmdel command continues to read input until it reaches an end-of-file character.

After a delta has been removed, it is not included in any g-file created by the get command. However, the delta table entry remains in the s. file with an R by the entry to show that the delta has been removed.

Flags


-r SID Removes the specified delta SID from the SCCS file. This flag is required.

Exit Status

This command returns the following exit values:

0 Successful completion.
>0 An error occurred.

Examples

To remove delta 1.3 from the s.test.c SCCS file, enter:

rmdel -r 1.3 s.test.c

Files


/usr/bin/rmdel Contains the rmdel command.
s.files Files processed by the rmdel command.

Related Information

The delta command, get command, prs command.

The sccsfile file format.

Source Code Control System (SCCS) Overview in AIX 5L Version 5.1 General Programming Concepts: Writing and Debugging Programs.

List of SCCS Commands in AIX 5L Version 5.1 General Programming Concepts: Writing and Debugging Programs.


[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]