Move a file in CVS without resetting the revision number

前端 未结 6 718
谎友^
谎友^ 2021-02-08 13:24

Lately I\'ve be moving source files around in our source tree. For example placing a bunch of files into a common assembly. I\'ve been doing this my deleting the file from CVS

6条回答
  •  长发绾君心
    2021-02-08 13:44

    The online CVS manual has some detail on how to do this:

    The normal way to move a file is to issue a cvs rename command.

    $ cvs rename old new
    $ cvs commit -m "Renamed old to new"

    This is the simplest way to move a file. It is not error prone, and it preserves the history of what was done. CVSNT clients can retrieve the original name by checking out an older version of the repository.

    This feature is only supported on CVSNT servers 2.0.55 and later.

提交回复
热议问题