Renaming Working Copy Items

Rename items in a working copy using one of the following methods:

  1. Select the item to rename and then single-click the item to start editing the name
  2. Select the item to rename and press the Return (⏎) key.
  3. Confirm the pressing the Return (⏎) key or clicking on another item in the browser.
  4. You can cancel the rename at any time by pressing the Escape (⎋) key.

Subversion implements a rename as a move operation. As a result, the original file is marked for deletion and added to the working copy with the new name.

For example:

  1. JSClassRef.cpp is selected for rename:

  2. JSClassRef.cpp is renamed to JSClassTypeRef.cpp:

  3. JSClassRef.cpp is scheduled for deletion and JSClassTypeRef.cpp is scheduled to be added:

Undoing a Rename

You can use the Revert function to undo a rename using the following steps:

  1. Select the original file which was scheduled for deletion and revert it to the BASE version using the Revert function. The file is restored to the BASE version and is no longer scheduled for deletion.
  2. Select the new file (e.g. JSClassTypeRef.cpp) which is still scheduled for addition to the repository and remove the file using the Delete function.

Committing a Rename

In order to preserve the rename operation correctly in the repository's history, it is recommended that you commit both the deleted and added items at the same time.