facebook

CVS Glitch [Closed]

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #205008 Reply

    europarl
    Member

    – System Setup ——————————-
    Operating System and version: Win NT4 WS
    Eclipse version: 2.1.2
    Fresh Eclipse install (y/n): y
    MyEclipse version: 2.7GA
    Eclipse JDK version: 1.4.2
    – Message Body ——————————-

    Guys,

    I know this is slightly off-topic as it concerns more Eclipse than MyEclipse, but I just try a post and see if anyone can come with some idea… This problem has been reported by a programmer:

    I want to “Edit” or “Unedit” a class in Eclipse via CVS.

    I “Synchronize with repository” my project, the class is different, thus I “Update from repository”. When I want to “Edit” this class, it’s impossible and “Shows Editors” show nothing for this class. A colleague “Edit” the class and “Commit” it. I try to “Edit”, same problem. I try to refresh the class and the project, no change.

    Shutdown and restart Eclipse, the options “Edit” and “Unedit” appear in context menu by right click, but when I try them, a dialog box appears with the text “The chosen operation is not enabled”. However the option in Preferences “enable watch/edit for this project” is marked.

    Do you have any solution to “Edit” properly a class?

    Any hint welcome,
    Thanks,
    David

    #205010 Reply

    Riyad Kalla
    Member

    David,
    Editing in CVS is not like other source control systems, you ‘just do it’ and either check your changes it, or replace them with whats in the repo. Your coders don’t need to do any ‘checking out’ or ‘locking’ or anything like that. Just update, pull down all the changes, make any edits they want, then commit them back.

    The use of ‘Edit’ in this case (IIRC) is to actually show the people that have edited the file, it has nothing to do with the coder editing it. Also note that in CVS there is no native concept of locking a file for editing, hence the name, “Concurrent Versioning System”.

    The menu options your guys should be using are “Sync with Repo”, then “Commit”, and that’s pretty much it. They can use “Replace” when they mess something up royally, or “Show in Resource History” if you want to roll back changes to a previous version. Besides that, its up to you and your team to decide.

    #205017 Reply

    europarl
    Member

    Riyad – you’re the one! Thanks.

    #205019 Reply

    Riyad Kalla
    Member

    No problem 😉

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: CVS Glitch [Closed]

You must be logged in to post in the forum log in