Game Development Community

CVSNT Corruption.

by Joshua Dixon · in General Discussion · 11/17/2005 (12:13 am) · 2 replies

First I hate to even ask this question here but it seems relevent to software development. And I've looked *everywhere* and I can't seem to find anything on the subject. In fact the only thing I could find was a obscure post where someone was asking about this particular problem and had no resolution.

I'm rather new to serious software development and the thought of having CVS appealed to me since I often make unpredictable blunders.

This all worked very nicely in theory and as I maintened and updated my files, I watched happily as CVS recorded my changes. And I was comforted by the knowledge should anything happen, I could rollback to a previous revision of my project and all would be well in the world.

However, as theory was put to the test, this did not occur as I had planned.

I was making a new build when I broke something big and had already for some reason commited the changes to the CVS. Anywho, no biggie, I rolled back the file in cvs, made the changes I wanted, tested them out, then commited the changes....this is where the problems started.

"Tag x.x is not a branch." It seems you cannot rollback and then start editing again, which defeated the purpose of me using CVS, the whole point of CVS for that matter.

So anyway, I thought ok, no big deal, I'll just copy the right changes, get a copy of the latest revision and put the correct code there.

This is when my second discovery occured. If you roll back and then try to commit it to the CVS and it wont let you, you can't jump back to the last known revision and commit either. For that matter, I have about 10 files and no idea how many thousands of lines of code I have that I can't commit to the CVS for whatever reason. Lucky for me though, I do have backups.

Now I can edit these files and save them to HD, but I cannot get them to commit to the repository at all.

I'm running CVSNT and TortoiseCVS. I've done some snooping around in the cvs files and they seem to be corrupted, as in it wrote a bad configuration to them.

Anyhelp if anyone has encountered this would be great. Thanks in advance.

#1
11/17/2005 (11:45 am)
Whatever you do don't change the files in the rep - cvs adds data to those files in order to track changes. Changing the files could cause problems for your rep.

To restore your file to the latest version right click on it, select CVS -> Update Special, check "Get tag/branch/revision", make sure the tag is "HEAD", check "Clean copy..." (this overwrites the file with the requested rep version, otherwise cvs does nothing - very annoying in my opinion), and hit OK.

Hope this helps!

-John
#2
11/17/2005 (9:04 pm)
I got it back working fine now, the big problem now seems that tortoise wont add subdirectorys