I'm using eclipse + cvs in a test scenario to see how it works. I used VSS(Visual Source Safe, MS of course) at my last job, so I'm just trying to get my feet wet with CVS and eclipse. So, I imported an old program I was working on into an Eclipse project. Then, created a CVS entry (repository, not sure which is the correct way to say that) for it. Next, just to see how it worked, I created a new Eclipse project getting the project from CVS. All is well. An important detail, I want to be prompted to edit any code. So, I changed the preferences Team->CVS->Watch/Edit-> - I checked, "Configure projects to use Watch/Edit on checkout" - I selected, "Send a CVS edit notification to the server" - I selected, "Always prompt" I think those are the correct settings for what I want, but if I'm mistaken please correct.
All that said, my problem comes in this scenario. I double click a file, it asks me if I want to edit it (submit notification etc.), I say yes. I edit and save. Now, I realize, oh, I didn't want to do that. I right click on the file, and choose Team->unedit, which I expect to restore the file to the current version in CVS without whatever changes I made. Now, it asks me "Overwrite local changes to edited files?" Sounds right too me, I answer yes. Operation in progress...then error dialog, "Problems encountered while moving resources." At this point, I can no longer edit the file, b/c CVS thinks I still have it checked out, but eclipse thinks I have already checked it in so I can't check it in.
Sorry for the length, but I thought detail here might be helpful. It seems to me a permissions problem, but I've been doing everything on my own account and all documents/cvs/eclipse project are in my home directory (subdirectories of course).
All the above is said in relation to Eclipse running on OS X, it seems that the problem I'm having is a release specific issue, not an Eclipse wide issue. Again, IDE'ers, any thoughts would be great appreciated.
Sorry, don't have a direct answer to your question - I don't use the watch feature, and don't know anyone who does.
Are you sure that you want to do that? I understand that you are used to that from VSS, but in my experience the non-locking access with additional merging works much better...
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Joined: Jul 09, 2004
No, I'm not sure that's what I want to do, it just seemed like the way I was supposed to do it. What's the best way to recover source from the repository after I've made changes, that I no long want, to my local copy. This is probably just a basic cvs question.
Joined: Jul 11, 2001
Well, when not using the watch/edit feature, simply by using
"Replace with -> Latest from HEAD" in the package explorer, or