Sun WorkShop TeamWare 2.1 User's Guide

Deleting Files

Deleting files from a Configuring workspace is a little trickier than it first appears. Deleting a file from a workspace with the rm command causes Configuring to think that the file has been newly created in the workspace's parent or child.

Take for instance, the following example. The file "C" is removed from the child workspace using the rm command; later the Bringover Update transaction is used to update the child.

Figure 8-5 File "C" Is Removed From The Child Using the rm Command, Then Created Again by Bringover

Graphic

Configuring examines the two workspaces and determines that the file "C" exists in the parent and not in the child -- following the usual Configuring rules, it creates "C" in the child.

The recommended method for "deleting" files in workspaces is to rename them out of the way using a convention agreed upon by everyone working on the project. One recommended method is to rename files you wish to "delete" so that they begin with the .del- prefix.

example% mv module.c .del-module.c example% mv SCCS/s.module.c SCCS/s..del-module.c

For example:

This method has a number of advantages: