Le 12 mars 2012 13:29, Clément OUDOT <[email protected]> a écrit :

> Le 12 mars 2012 13:07, Jonathan Clarke <[email protected]> a écrit :
> >
> > Do you already know about migrating SVN repos to git? I understand that
> > you can just use git-svn clone http://svn/repo/here/trunk, then git push
> > to GitHub, to keep all history. Is it that simple?
>
> I already done such migration for LemonLDAP::NG contributions, it is
> really easy. The complex thing is to map SVN authors (we will need
> your GitHub account ID) and the transformation of tags and branches
> into git system.
>
>
A little bit of bash code could prepare data (I already use the following
one, but you could find others on Google):

8<----
#!/usr/bin/env bash
authors=$(svn log -q | grep -e '^r' | awk 'BEGIN { FS = "|" } ; { print $2
}' | sort | uniq)
for author in ${authors}; do
  echo "${author} = NAME <USER@DOMAIN>";
done
8<----

Then, fill in blanks :)

Regards,
Thomas.
_______________________________________________
ltb-dev mailing list
[email protected]
http://lists.ltb-project.org/listinfo/ltb-dev

Reply via email to