[cvsnt] rename file

Bo Berglund bo.berglund at telia.com
Sat Apr 5 06:14:18 BST 2003


Community technical support mailing list was retired 2010 and replaced with a professional technical support team. For assistance please contact: Pre-sales Technical support via email to sales@march-hare.com.


On Fri, 4 Apr 2003 16:37:53 -0300, Eduardo Mylonas
<emylonas at automat.com.br> wrote:

>On CVS, this is what i do to rename a file on the repository:
>$ mv old new
>$ cvs remove old
>$ cvs add new 
>$ cvs commit -m "Renamed old to new" old new
>
>I looked for a similar on http://www.cvsnt.org/wiki/CvsCommand, but i couldn't find it. Is there any way to do that?
>
>Thanks
>
>Eduardo Mylonas

If you are on the server itself you may also rename the RCS file in
the repository itself:
$ mv old,v new,v

When you have done this you can check out the module again. You will
find the file under the new name and it will have the old revisions
intact. But of course now you are modifying past times, it will look
like the file has carried this name all along.

If you want to just switch the name of the file from now on, then your
method will probably work fine.

/Bo
(Bo Berglund, developer in Sweden)


More information about the cvsnt mailing list
Download the latest CVSNT, TortosieCVS, WinCVS etc. for Windows 8 etc.
@CVSNT on Twitter   CVSNT on Facebook