[cvsnt] Problems with rename of a file

Arthur Barrett arthur.barrett at march-hare.com
Sun Feb 12 22:20:57 GMT 2006


Patrick,

CVSNT 2.6 does renames in a completely different way to CVSNT 2.5, and since it is due to enter testing very very shortly we probably will not look to alter cvs rename 2.5 significantly.

That said - the e-mail notification should still work for rename (due to the commit) and I would have thought a duplicate rename would work - but perhaps an update after the 1st commit would have been in order.

In short the rename functionality in 2.5 is supported and does work, but is best considered an administrative function (ie: not for renaming files casually, "oh I think I'll change the name to this, no I like the old name better").  Many files in the CVSNT repository have been renamed and the historical rename will be automatcially "upgraded" to the new 2.6 format.

Regards,


Arthur Barrett



-----Original Message-----
From: cvsnt-bounces at cvsnt.org [mailto:cvsnt-bounces at cvsnt.org] On Behalf Of Patrick Wolf
Sent: 12 February 2006 14:20
To: cvsnt at cvsnt.org
Subject: [cvsnt] Problems with rename of a file


Hi,

discovered some problems when I renamed a file...

1) add a watch onto the file I want to rename

C:\temp\test_projects\Mondi_NASCO\10_Trunk\10_Core\80_Test\test>cvs watch add -a all abc.txt

C:\temp\test_projects\Mondi_NASCO\10_Trunk\10_Core\80_Test\test>cvs watchers
abc.txt pwolf   edit    unedit  commit

2) Now rename the file

C:\temp\test_projects\Mondi_NASCO\10_Trunk\10_Core\80_Test\test>cvs rename abc.txt xxx.txt cvs rename: Warning: rename is still experimental and may not behave as you would expect

C:\temp\test_projects\Mondi_NASCO\10_Trunk\10_Core\80_Test\test>cvs commit -m "rename" cvs commit: Examining . cvs server: Examining . /cvs/Mondi/Mondi_NASCO/10_Trunk/10_Core/80_Test/test/.directory_history,v 
<--directory update
new revision: 1.2; previous revision: 1.1
done

3) Check if the watch is still there => my watch hasn't survived the rename :-(

C:\temp\test_projects\Mondi_NASCO\10_Trunk\10_Core\80_Test\test>cvs watchers

4) Rename the file back, because I made a mistake...

C:\temp\test_projects\Mondi_NASCO\10_Trunk\10_Core\80_Test\test>cvs rename xxx.txt abc.txt cvs rename: Warning: rename is still experimental and may not behave as you would expect

C:\temp\test_projects\Mondi_NASCO\10_Trunk\10_Core\80_Test\test>cvs commit -m "undo rename" cvs commit: Examining . cvs server: Examining . /cvs/Mondi/Mondi_NASCO/10_Trunk/10_Core/80_Test/test/.directory_history,v 
<--directory update
new revision: 1.3; previous revision: 1.2
done

5) Check the status of the directory. What happend to my file???

C:\temp\test_projects\Mondi_NASCO\10_Trunk\10_Core\80_Test\test>cvs status cvs server: Examining . cvs server: abc.txt is no longer in the repository ===================================================================
File: abc.txt           Status: Entry Invalid

   Working revision:    1.1
   Repository revision: No revision control file
   Sticky Tag:          (none)
   Sticky Date:         (none)
   Sticky Options:      (none)
   Merge From:          (none)

6) Also an update can't restore the file abc.txt nor the xxx.txt!!!

C:\temp\test_projects\Mondi_NASCO\10_Trunk\10_Core\80_Test\test>cvs update -d cvs server: Updating . cvs server: abc.txt is no longer in the repository

7) So I tought, maybe there is something wrong, delete the directory and get a fresh copy,
   but now I lost everything, because cvs update returns an error!!!

C:\temp\test_projects\Mondi_NASCO\10_Trunk\10_Core\80_Test\test>cd .. C:\temp\test_projects\Mondi_NASCO\10_Trunk\10_Core\80_Test\test>del test /s /f C:\temp\test_projects\Mondi_NASCO\10_Trunk\10_Core\80_Test\test>rd test

C:\temp\test_projects\Mondi_NASCO\10_Trunk\10_Core\80_Test>cvs update -d cvs server: Updating . cvs server: Updating 10_IntegrationTest cvs server: Updating 20_SystemTest cvs server: Updating 30_AcceptanceTest cvs server: Updating test cvs server: nothing known about test/abc.txt



So there seems to be two problems
1) Watches are not transfered if a file is renamed
2) It's not possible to rename a file and then rename it back to the same name...

-Patrick

-- 
DSL-Aktion wegen großer Nachfrage bis 28.2.2006 verlängert:
GMX DSL-Flatrate 1 Jahr kostenlos* http://www.gmx.net/de/go/dsl _______________________________________________
cvsnt mailing list
cvsnt at cvsnt.org http://www.cvsnt.org/cgi-bin/mailman/listinfo/cvsnt



More information about the cvsnt mailing list