[developers] First step for the clone of FFTB SVN in GitHub

Alexandre Rademaker arademaker at gmail.com
Tue Jul 21 18:09:37 CEST 2020


https://github.com/arademaker/treebank

This was created with the commands below, following the step-by-step from http://www.sailmaker.co.uk/blog/2013/05/05/migrating-from-svn-to-git-preserving-branches-and-tags-3 that is consistent with the git svn documentation.


mkdir treebank
cd treebank
git svn init http://sweaglesw.org/svn/treebank --stdlayout --prefix=svn/
for tag in `git branch -r | grep "tags/" | sed 's/ tags\///'`; do git branch $tag refs/remotes/$tag; done
git svn fetch


The SVN repository (http://sweaglesw.org/svn/treebank/) didn’t contain branches, so I have created branches for the two tags I found: `foo` and `packard-2015`. Note that these tags do not look very interesting and maybe they could be removed in the SVN repository. That would make the process even simpler, tracking only the trunk branch.

With the repository ready, I created the GitHub repository and pushed to it

git push -u origin master svn/tags/foo svn/tags/packard-2015

We don’t have automation yet, if Woodley update its SVN, all I need to do is:

git svn fetch
git push --all -u origin

First command retrieves the news from SVN to my local machine. Second command pushes the news to GitHub. Eventually, a new tag or branch can be created by Woodley, in that case, I may also need to create git branches for them before push to GitHub. 

Since the FFTB is not updated very often, I feel the manual solution can works for now, but I wonder if I have any way to me informed by SVN changes. Does any one know any alternative to subscribe for SVN changes? 

Hi Michael and Stephan, any comments about the solution above? Michael is the only user in the https://github.com/delph-in organization? Can you add me so I can move this repository to the delph-in org?


Best,
Alexandre






More information about the developers mailing list