Renaming a Modified File Before Keeping It
You can create a new version of a file element in your workspace, recording either a content change A change to the contents of a file element, recorded in a new version created with the Keep command. For a symbolic-link element, a change to the target pathname is a content change. For an element-link element, a change to the target element is not considered a content change to the link. See namespace change. or a namespace change A change to the pathname of a file or directory element: either renaming the element in place or moving the element to a different location in the depot's directory hierarchy.. But you can't do both at once. For example, suppose you:
Edit the contents of file color.java, so that it gets (modified) status.
Use the Rename command to change the filename to hue.java.
This creates a new version of the file element in your workspace, recording the name change, but not the content change. To preserve the content change, you must use a separate Keep command to create a second new version.