Posted under CVS
Permalink
Tags CVS, CVSNT, Gotcha, Tip, TortoiseCVS
I received this error whilst performing a commit via Eclipse:-
The server reported an error while performing the "cvs add" command. cvs server: xxx added independently by second party
The error related to some test database scripts in the project. I searched for solutions to this, and found some comments about tagging the files as merged, but this was not really any help.
In the end, I examined the files using TortoiseCVS, and noted that the offending files were not flagged as being under source control – they did not have any icon decoration on them.
In the end the following steps solved the problem:-
- I made sure I had copies of them elsewhere, and then deleted them from the (TortoiseCVS managed) directory under the eclipse project.
- I then did an Update with TortoiseCVS – this reloaded the latest versions from CVS, and this time they were correctly icon-decorated as managed.
- I then copied the new versions in to replace these. When I did this, the new versions were correctly decorated in red as updated versions but known to CVS/Tortoise.
- I then did a commit with Eclipse, and this now proceeded without error.
- Finally to be safe, I did a file compare to check that the correct latest versions were in place.
This solved the problem. It appeared that somehow I had lost the required CVS metadata such that the files did not appear to be CVS managed. Tortoise was very helpful here – if you see files with no icon decoration, this is immediately suspicious.