Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 362885

Summary: [GMF Tooling] Git migration request
Product: Community Reporter: Mickael Istria <mistria>
Component: GitAssignee: Eclipse Webmaster <webmaster>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: borlander
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 358929    

Description Mickael Istria CLA 2011-11-04 06:51:27 EDT
GMF Tooling would like to migrate from CVS to Git.
We plan to import the CVS history into the Git repository, using cvs2git (or something else if advised).
We'll first need to have a Git repository and then try cvs2git. Is everything is OK, the CVS repo can be archived. Otherwise, we'll see ;)
Comment 1 Eclipse Webmaster CLA 2011-11-04 10:38:59 EDT
Ok, I've created /gitroot/gmf-tooling, and you can init your repo in there with:

initrepo /gitroot/gmf-tooling/org.eclipse.gmf-tooling.git

As for the import you can run it locally(on your box) and then push the git repo, or we can run an import here.

-M.
Comment 2 Mickael Istria CLA 2011-11-04 10:46:38 EDT
I think I need to have a shell access to git.eclipse.org to perform the init.
Do you know when the cvs2git rountine does init the repository or if I have to perform it on a non-initiated repo?
Comment 3 Mickael Istria CLA 2011-11-04 11:22:15 EDT
Matt,

Seems like the repository has to be initiated and that I don't have the
permission to do it.
Can you do this for me?
Comment 4 Mickael Istria CLA 2011-11-04 11:38:45 EDT
Apparently, there will probably be a serious issue with cvs2git: the script is used to import a FULL cvs repository, but we only want to import a folder in the "modeling" CVS repository...
Comment 5 Eclipse Webmaster CLA 2011-11-04 15:48:10 EDT
I can but you should be able to call the initrepo command even with the restricted shell.

We use git-cvsimport, and it allows you to specify the 'module' in cvs you want ti import.

-M.
Comment 6 Mickael Istria CLA 2011-11-08 05:43:04 EST
Matt, I cannot do anything at git.eclipse.org, It tells me

--
If your prompt is r$ and you are disconnected after a command, 
please remember that shell access is only available on
build.eclipse.org. 

r$ cd /gitroot/
Not allowed to do 'cd'
Connection to git.eclipse.org closed.
--
Comment 7 Eclipse Webmaster CLA 2011-11-09 10:06:22 EST
You can run the initrepo command from comment 1 even with the restricted shell.

Was there something else you were trying to do?

-M.
Comment 8 Mickael Istria CLA 2011-11-09 10:24:50 EST
Actually I'd like to perform a "cd" to give a try to the migration as explained here http://wiki.eclipse.org/Git/Migrating_to_Git#Using_git-cvsimport
And "cd  is refused.

Perhaps if you have time, it would be more efficient if you could perform this migration. Would you agree with it?
The repository is /cvsroot/modeling/org.eclipse.gmp/org.eclipse.gmf.tooling
Comment 9 Eclipse Webmaster CLA 2011-11-09 14:44:40 EST
Ok, I've run the import.  Can you take a look at the repo and confirm it's what you were expecting?

-M.
Comment 10 Mickael Istria CLA 2011-11-10 04:17:29 EST
It looks very good to me!
Waiting for Michael Golubev (as project lead) to confirm it, and we're done!
Comment 11 Michael Golubev CLA 2011-11-15 06:30:16 EST
Hello, 

Thank you for migration, everything looks good for me. 

Can you please flag the CVS repository (namely, the org.eclipse.gmp/org.eclipse.gmf.tooling/ and org.eclipse.gmp/org.eclipse.gmf.tooling.releng/ ) as read-only? 

Regards, 
Michael
Comment 12 Eclipse Webmaster CLA 2011-11-15 13:35:54 EST
Ok, I've marked them read only.  In a few months they'll be removed as part of our standard post move cleanup.

-M.