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

Bug 450408

Summary: Migrate Epsilon to Git
Product: Community Reporter: Dimitris Kolovos <dkolovos>
Component: GitAssignee: Eclipse Webmaster <webmaster>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: agarcdomi, arcanefoam, maarten.bezemer
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X   
Whiteboard:

Description Dimitris Kolovos CLA 2014-11-06 17:36:38 EST
Epsilon still has an SVN repository [1] which should be moved to Git in prospect of the SVN shutdown next month. A part of the Epsilon website draws files directly from the existing SVN repository (e.g. [2]) so it'd be great if a read-only copy of the SVN repository could remain functional in parallel with the Git repository until we've migrated the website.

On a related question, we currently use SVN tags to mark releases (e.g. [3]). What would these be mapped into in the new Git repository?

[1] http://dev.eclipse.org/svnroot/modeling/org.eclipse.epsilon
[2] https://www.eclipse.org/epsilon/examples/
[3] http://dev.eclipse.org/svnroot/modeling/org.eclipse.epsilon/tags/1.2/
Comment 1 Eclipse Webmaster CLA 2014-11-07 15:08:10 EST
I've done an initial import which you can find here: ssh://git.eclipse.org/gitroot/epsilon/org.eclipse.epsilon.git(or http://git.eclipse.org/c/epsilon/org.eclipse.epsilon.git) . 

Once we know the import is good we can pick a specific date to do the 'final' import at which time we'll add everything else.

The old SVN data will remain in a read only mode for a while while we get everyone moved over.

In theory the SVN tags should be mapped to Git tags, but some might get lost in the transition.

-M.
Comment 2 Dimitris Kolovos CLA 2014-12-01 17:12:53 EST
Apologies for the slow response - this somehow slipped my attention. 

I've checked out the master branch of the new Git repository and everything seems to be working well. I've also gone through [1] and all history seems to be there too.

My only concern is that although there seems to be a branch [2] for SVN tag 1.2 [3], there are no branches for previous tags (e.g. 1.0, 1.1 and 1.1_SR1). Ideally we'd like to keep all tags except for the hutn-typedslots one.

Any thoughts on this?

[1] http://git.eclipse.org/c/epsilon/org.eclipse.epsilon.git/log/
[2] http://git.eclipse.org/c/epsilon/org.eclipse.epsilon.git/log/?h=1.2
[3] http://dev.eclipse.org/svnroot/modeling/org.eclipse.epsilon/tags/1.2
Comment 3 Eclipse Webmaster CLA 2014-12-02 10:06:11 EST
I'm not sure what to suggest.  This sounds similar to bug 450680(RTSC git conversion).  

Some projects have chosen to do the imports locally and then just upload a tarball to Eclipse.org which we then unpack and put in place.

-M.
Comment 4 Dimitris Kolovos CLA 2014-12-02 10:20:19 EST
OK - I'll give this a go and let you know how it goes.
Comment 5 Dimitris Kolovos CLA 2014-12-02 18:25:31 EST
I used svn2git locally, removed obsolete braches and tags, and shared a zipped version of the repository here: http://www-users.cs.york.ac.uk/~dkolovos/temp/epsilon-svn2git.zip
Comment 6 Eclipse Webmaster CLA 2014-12-03 11:36:28 EST
Ok I grabbed the file and unpacked then pushed it into a new bare repo here: https://git.eclipse.org/c/epsilon/org.eclipse.epsilon.git

-M.
Comment 7 Dimitris Kolovos CLA 2014-12-03 17:56:04 EST
Unfortunately, the URL above doesn't seem to be working from me (I'm getting a "No repositories found" error message)
Comment 8 Dimitris Kolovos CLA 2014-12-06 16:03:27 EST
The URL now works but I can still not see tags when I clone the repository. What happens when you run "git tag" in the directory where the repository is stored on the server?
Comment 9 Dimitris Kolovos CLA 2014-12-06 18:31:44 EST
I've cloned the repository, created the missing tags manually, pushed them back to the remote repository, and everything seems to be in good order now. Could you please turn the SVN repository to read-only when you get a chance?
Comment 10 Maarten Bezemer CLA 2014-12-08 04:16:25 EST
When I cloned the repository from its new git location, I got the following warning

$ git clone git://git.eclipse.org/gitroot/epsilon/org.eclipse.epsilon.git
Cloning into 'org.eclipse.epsilon'...
remote: warning: unable to access '/root/.config/git/attributes': Permission denied

The cloning seems to work properly (I got all sources), so I do not know whether it is a real problem or not.
Comment 11 Eclipse Webmaster CLA 2014-12-09 11:46:40 EST
It's just a warning that the git service is picking up the wrong home path(only affects git:// protocol).  I've tweaked the service startup so that error should disappear.

I've also set your svn repository as read only.

-M.
Comment 12 Horacio Hoyos CLA 2015-01-10 09:49:15 EST
Can you marked this as fixed or announce somewhere when the git repository is fully functional and advise developers to migrate.

Regards,
Comment 13 Eclipse Webmaster CLA 2015-01-12 13:20:51 EST
Sure thing.

The Git URLs for Epsilon are: 

git://git.eclipse.org/gitroot/epsilon/org.eclipse.epsilon.git

and 

ssh://committer_id@git.eclipse.org/gitroot/epsilon/org.eclipse.epsilon.git

Committers will need to use the SSH URL in order to commit code.

Please let your project know.

-M.