This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Building Blockchain Apps and have Michael Yuan on-line!
See this thread for details.
Win a copy of Building Blockchain Apps this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
Sheriffs:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
Bartenders:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

Eclipse and CVS

 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Marshal
Posts: 67366
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There doesn't seem to be any Mac dimension to this question, so I'm moving this along to the IDEs forum.
 
Matt Zollinhofer
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Marshal
Posts: 67366
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
author
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
Matt Zollinhofer
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
A sonic boom would certainly ruin a giant souffle. But this tiny ad would protect it:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!