Next: , Previous: I just committed some files with the wrong log message, Up: Some Real Life Problems (With Solutions)


I need to move files around without losing revision history

In the repository, copy (don't move) the RCS files to the desired new location in the project. They must remain in their old locations as well. Then, in a working copy, do:

     floss$ rm oldfile1 oldfile2 ...
     floss$ cvs remove oldfile1 oldfile2 ...
     floss$ cvs commit -m Ā“removed from hereĀ” oldfile1 oldfile2 ...

When people do updates after that, CVS correctly removes the old files and brings the new files into the working copies just as though they had been added to the repository in the usual way (except that they'll be at unusually high revision numbers for supposedly new files).

Karl Fogel wrote this book. Buy a printed copy via his homepage at red-bean.com

copyright  ©  March 25 2019 sean dreilinger url: https://durak.org/sean/pubs/software/cvsbook/I-need-to-move-files-around-without-losing-revision-history.html