14Moving and Renaming Files and Directories

Moving and renaming are almost the same within Subversion.[8] To rename a file or directory, you just move it so that it has a new name but is in the same location. To move a file or directory to a new location, specify the destination directory. You can also move and rename at the same time by specifying a renamed file or directory in a new location.

Moving or renaming an item is a two-phase process, similar to adding or deleting; first you tell Subversion you want to move or rename the items, and then you commit your changes to the repository.

If you’re looking closely, Subversion tracks a move or rename as an add of the item with a new name or in a new location and a delete of the old item. ...

Get Pragmatic Guide to Subversion now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.