Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Migrating project from Subversion to CVS
Migrating project from Subversion to CVS [message #1694740] Thu, 07 May 2015 13:28 Go to next message
Paul Montague is currently offline Paul MontagueFriend
Messages: 6
Registered: January 2012
Junior Member
I need to migrate an existing Eclipse Java project from Subversion to CVS. (Don't ask why!) This is on a Windows PC, with Indigo.

At one time (early 2013-ish), I thought there was a tool (svn2cvs ?) to do this, but Googling doesn't seem to turn it up now.

So, I'm trying to get it to work 'manually'. I've gotten a CVS repository established, created a copy of the project in question, and used Team > Disconnect to drop Subversion, then Team > Share Project, choosing CVS - this results in the "[cvs]" notation showing up on the project in the Java view. However, when I go to the CVS Repository view, I see a line for the project on the HEAD, but when I try to expand it, no content is visible (no folders or files). If I look in my Projects folder in Windows Explorer, I see the project and its contents, and can use Tortoise to do CVS things there - but can't seem to get it visible to the Eclipse client.

Has anyone done this migration, and if so, what is the magic step I'm missing to get it set up in Eclipse? (Again, don't ask why or suggest staying on SVN or point to Git - I'm responding to direction from management on this.)

Thanks in advance for any info!

UPDATE - got this working. Not sure if it's the "best" way, but a way:


    Copied MySvnProject to MyCvsProject in Eclipse
    In Windows Explorer, went to Projects/MyCvsProject, and using WinTortoise did a CVS > Add Contents, then a CVS > Commit (excluding all the .svn files in the list).
    In Windows Explorer, deleted the MCvsProject/.svn folder tree.
    In Eclipse, did a Team > Disconnect on the project (to drop the project's SVN connection), then Team > Share Project, choosing CVS. This resulted in seeing the "[cvs]" on the project in Eclipse Java view.
    I was then expecting to see contents in MyCvsProject when I went to CVS Repository view, but did not see contents. Did a bit of fiddling around.... (If you know the old cartoon with the two scientists at the blackboard and the caption "at this point a miracle occurs" - it may apply here. Shocked )
    Eventually noticed that in the CVS Repository view, there was a folder for MyWorkspace at the same level as all of my projects including MyCvsProject....
    Looked in the MyWorkspace folder and saw a subfolder for MyCvsProject. That subfolder had all the contents of the project.
    Was able to do a Checkout of the complete project under a new name, go to the Java view and it built correctly first time.


Regards,
Paul

[Updated on: Thu, 07 May 2015 15:07]

Report message to a moderator

Re: Migrating project from Subversion to CVS [message #1694786 is a reply to message #1694740] Thu, 07 May 2015 20:54 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4435
Registered: July 2009
Senior Member

IIRC, sharing to a CVS repository doesn't automatically Check In.

_
Nitin Dahyabhai
Eclipse Web Tools Platform
Previous Topic:make : [...] Error 1 (ignored)
Next Topic:How to change where tabs open?
Goto Forum:
  


Current Time: Sat Apr 27 01:43:25 GMT 2024

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

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

Back to the top