[cvsnt] Problems with rename of a file
Patrick Wolf
patrick.wolf at gmx.at
Sun Feb 12 03:20:01 GMT 2006
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
More information about the cvsnt
mailing list