File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes IDEs, Version Control and other tools and the fly likes Eclipse and CVS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Eclipse and CVS" Watch "Eclipse and CVS" New topic
Author

Eclipse and CVS

Matt Zollinhofer
Ranch Hand

Joined: Jul 09, 2004
Posts: 33
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).

Any thoughts would be greatly appreciated,
Matt
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60752
    
  65

There doesn't seem to be any Mac dimension to this question, so I'm moving this along to the IDEs forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Matt Zollinhofer
Ranch Hand

Joined: Jul 09, 2004
Posts: 33
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.

Matt
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60752
    
  65

I think your question will get more exposure to the Eclipse-savvy here. If it turns out to be an OS X-only issue, please let me know and I will have it moved back.
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
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
Matt Zollinhofer
Ranch Hand

Joined: Jul 09, 2004
Posts: 33
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.

Thanks,
matt
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
Well, when not using the watch/edit feature, simply by using

"Replace with -> Latest from HEAD" in the package explorer, or

"override and update" in the synchronize view.
 
Consider Paul's rocket mass heater.
 
subject: Eclipse and CVS
 
Similar Threads
Eclipse & CVS
Eclipse and FTP
Eclipse/CVS - can I stop some files from being CVS-ed?
Eclipse cvs setup and check out issues
How to hide some ressources ?