Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit » Adding git management to CVS project?
Adding git management to CVS project? [message #668230] Wed, 04 May 2011 15:26 Go to next message
Brian  is currently offline Brian
Messages: 3
Registered: July 2009
Junior Member
I'm working in an environment where CVS is the mandated VCS and I'm not allowed to branch. I'm a very new convert to git and am loving using command line git to manage branches & such locally. I'd like to stick to using the CVS integration in eclipse to communicate with the central server, but I think it would be nice to use the GUI tools in egit as well. Has anyone successfully had both CVS and git plugins working on the same project?

Thanks in advance!
Brian
Re: Adding git management to CVS project? [message #668295 is a reply to message #668230] Wed, 04 May 2011 21:35 Go to previous messageGo to next message
Robin Rosenberg is currently offline Robin Rosenberg
Messages: 331
Registered: July 2009
Senior Member
On 2011-05-04 17.26, Brian wrote:
> I'm working in an environment where CVS is the mandated VCS and I'm not
> allowed to branch. I'm a very new convert to git and am loving using
> command line git to manage branches & such locally. I'd like to stick
> to using the CVS integration in eclipse to communicate with the central
> server, but I think it would be nice to use the GUI tools in egit as
> well. Has anyone successfully had both CVS and git plugins working on
> the same project?
> Thanks in advance!
> Brian

If you want to be lean, use git locally and cvsimport or fromcvs to
import stuff and git cvsexportcommit to export and forget about the CVS
server beyond that. fromcvs, while not converting tags and requiring
file level access to the CVS repo, is extreemly fast so you can run
it often.

To get the CVS view, use a separate workspace. You need a separate CVS
checkout for cvsexportcommit anyway.

-- robin
Re: Adding git management to CVS project? [message #668485 is a reply to message #668230] Thu, 05 May 2011 20:04 Go to previous messageGo to next message
Brian  is currently offline Brian
Messages: 3
Registered: July 2009
Junior Member
Thanks for the reply Robin. It gave me a few ideas, and I have some other thoughts I'd like to bounce around.

For starters, I'm on windows. And to my knowledge the cvs import/export doesn't work on windows, yet. I can mount a linux network share and do all of the eclipse look over the network, but that isn't always the best option.

Please forgive my newness, but the process you're talking about is something similar to the process described at http://issaris.blogspot.com/2005/11/cvs-to-git-and-back.html, right? That seems like a lot of management, which I'm trying to avoid.

I do like the idea of a separate project for my CVS view. If that project is a remote of where I actually do work, I can manage the CVS stuff from there and have the egit view as well. Of course, I still think it would be easier to get both plugins working on the same project.

These things can co-exist happily on the command line. Is there a limitation somewhere that prevents them from being overlapped in eclipse? Am I the only person that wants to work this way?

Thanks again.
Re: Adding git management to CVS project? [message #669305 is a reply to message #668485] Mon, 09 May 2011 20:22 Go to previous messageGo to next message
Brian  is currently offline Brian
Messages: 3
Registered: July 2009
Junior Member
Ah! I might be getting a bit more of your suggestion. I opened a new workspace and imported the git repository from my original workspace. I then imported the project & found it pointed to the location in the first workspace. This lets me have git in one workspace and cvs in another. That seems workable.

As a side note - I was trying to get another copy of the checkout on my filesystem. I suppose what I actually wanted was to clone the repository (outside of the workspace) before importing. I'm still a bit confused in that case -- why can't I have 2 copies of the same project in the same workspace from different repositories? I realize that is a bit silly, but I do that with other projects. I'd also like to be able to rename the project. That doesn't seem to work for me.
(no subject) [message #669311 is a reply to message #669305] Mon, 09 May 2011 20:33 Go to previous message
Robin Rosenberg is currently offline Robin Rosenberg
Messages: 331
Registered: July 2009
Senior Member
On 2011-05-09 22.22, Brian wrote:
> Ah! I might be getting a bit more of your suggestion. I
> opened a new workspace and imported the git repository from
> my original workspace. I then imported the project & found
> it pointed to the location in the first workspace. This
> lets me have git in one workspace and cvs in another. That
> seems workable.
>
> As a side note - I was trying to get another copy of the
> checkout on my filesystem. I suppose what I actually
> wanted was to clone the repository (outside of the
> workspace) before importing. I'm still a bit confused in
> that case -- why can't I have 2 copies of the same project
> in the same workspace from different repositories? I
> realize that is a bit silly, but I do that with other
> projects.

How do you do that? For me Eclipse thinks I can only have
one instance of a project.

I'd also like to be able to rename the project.
> That doesn't seem to work for me.

Two problem: The actual rename does not work. See
https://bugs.eclipse.org/bugs/show_bug.cgi?id=334112

The second problem is that the commit dialog is too
stupid to handle the fix to the first problem. People
are working on it.

-- robin
Previous Topic:Dangerous "push to upstream"
Next Topic:Project from local bare repository
Goto Forum:
  


Current Time: Sat Oct 25 00:46:25 GMT 2014

Powered by FUDForum. Page generated in 0.02385 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software