Tuesday, November 28, 2006

Workaround When Eclipse Fucks Off With CVS

Until recently, I always found Eclipse CVS support to be excellent. The synchronize view was really a big plus to do clean commits, without forgetting any file.

But I have encountered several problem with Eclipse 3.2+:

On one project, it keeps putting the build directory into CVS, and I can't find how to change that setting. Each time I open the project I have to change the CVS/Entries file.

On another, where I have lots of files in, Eclipse delete some of the files (checked in CVS) regularly, although not often. It won't retrieve them back again from CVS. It seems to be the same files each time. I have no clue why.

The diff sometimes tells me the whole file has changed while there is absolutely no change.

I could not make the merge work. It kept on complaining about some parameters.

And now the workaround for all those cases:
The good old CVS command line.

I never remember how do to a merge with the command line, so I each time go to google and read this merge example page. Here are the very simple steps if you are in a branch and want to merge:
  1. cvs update -A mypoem.txt (use head as local repository)
  2. cvs update -j release-1 (merge release-1 changes into local repository)
  3. cvs update mypoem.txt
  4. cvs commit mypoem.txt

1 comment :

  1. hi

    actullay i’m anew to CVS and i don’t know how to use it
    My IDE is eclipse

    now i use Virtual Source save but i need to use CVS i know that i can

    integrate it with wclispe but i don’t know how

    under my step which i did

    1-downloaded cvsnt-2.5.03.2382
    2-from Eclipse i try to add anew CVS reprository i used this configratin

    host:my pc name
    Reprository path:/test/cvroot

    connection type:extssh

    i know this is un correct pls support me and show me teh right way

    ReplyDelete