Moving directories -- CVS---Concurrent Versions System
Next: Keyword substitution
Prev: Moving files
Top: Top
14. Moving and renaming directories
If you want to be able to retrieve old versions of the
module, you must move each file in the directory
with the cvs commands. See Outside. The old, empty
directory will remain inside the repository, but it
will not appear in your workspace when you check out
the module in the future.
If you really want to rename or delete a directory, you
can do it like this:
- Inform everyone who has a copy of the module that the
directory will be renamed. They should commit all
their changes, and remove their working copies of the
module, before you take the steps below.
- Rename the directory inside the repository.
$ cd $CVSROOT/module
$ mv old-dir new-dir
- Fix the cvs administrative files, if necessary (for
instance if you renamed an entire module).
- Tell everyone that they can check out the module and continue
working.
If someone had a working copy of the module the cvs commands will
cease to work for him, until he removes the directory
that disappeared inside the repository.
It is almost always better to move the files in the
directory instead of moving the directory. If you move the
directory you are unlikely to be able to retrieve old
releases correctly, since they probably depend on the
name of the directories.
Menu
Next: Keyword substitution
Prev: Moving files
Top: Top