Re: svn2git - experimental snapshot ...

"Eric Bruneton" <[email protected]> Mon, 05 Jun 2017 11:35:01 +0200
Newsgroups gmane.comp.java.objectweb.asm
Message-ID <[email protected]>
Can you provide the details of your migration? I tried using reposurgeon and
repocutter but I have some issues.

I first used "svnrdump" to get a dump of the svn repo:

svnrdump dump svn://svn.forge.objectweb.org/svnroot/asm > asm.dump

then I used repocutter to create dumps for separate repositories for asm,
asmdex, eclipse, guide, web (see script at the bottom).

Finally I tried to use reposurgeon to convert these dumps to git repositories,
but without success (I'm tried to adapt the steps from
https://freephile.org/wiki/Reposurgeon). For instance, with

reposurgeon "verbose 1" "read -" < asm.dump

I get "reposurgeon: unsupported dump format version 3"

Eric

------------
Script to split the svn dump:

cat asm.dump | repocutter expunge '^trunk/asm/' '^trunk/asmdex/' '^trunk/
CVSROOT/' '^trunk/eclipse/' '^trunk/guide/' '^branches/' '^tags/' | repocutter
pathrename '^trunk/web/' 'trunk/' > asm_web.dump

cat asm.dump | repocutter expunge '^trunk/asm/' '^trunk/asmdex/' '^trunk/
CVSROOT/' '^trunk/eclipse/' '^trunk/web/' '^branches/' '^tags/ASM_\d' '^tags/
ASMDEX' '^tags/beforepref' '^tags/BYTECODEOUTLINE' '^tags/JORM_' '^tags/Root_'
'^tags/start' | repocutter pathrename '^trunk/guide/' 'trunk/' | repocutter
pathrename '^tags/ASM_GUIDE_1_0/guide/' 'tags/ASM_GUIDE_1_0/' > asm_guide.dump

cat asm.dump | repocutter expunge '^trunk/asm/' '^trunk/asmdex/' '^trunk/
CVSROOT/' '^trunk/guide/' '^trunk/web/' '^branches/' '^tags/ASM_\d' '^tags/
ASM_GUIDE' '^tags/ASMDEX' '^tags/JORM_' '^tags/Root_' '^tags/start' |
repocutter pathrename '^trunk/eclipse/plugin/' 'trunk/' | repocutter
pathrename '^tags/([^/]*)/eclipse/plugin/' 'tags/\\1/' > asm_eclipse.dump

cat asm.dump | repocutter expunge '^trunk/asm/' '^trunk/CVSROOT/' '^trunk/
eclipse/' '^trunk/guide/' '^trunk/web/' '^branches/' '^tags/ASM_\d' '^tags/
ASM_GUIDE' '^tags/beforepref' '^tags/BYTECODEOUTLINE' '^tags/JORM_' '^tags/
Root_' '^tags/start' | repocutter pathrename '^trunk/asmdex/' 'trunk/' >
asm_dex.dump

cat asm.dump | repocutter expunge '^trunk/asmdex/' '^trunk/CVSROOT/' '^trunk/
eclipse/' '^trunk/guide/' '^trunk/web/' '^branches/ANN_SUPPORT/CVSROOT/'
'^branches/ANN_SUPPORT/web/' '^branches/ASM_1_5_1_PATCHES/CVSROOT/'
'^branches/ASM_1_5_1_PATCHES/web/' '^branches/init/web/' '^branches/VALHALLA/
asmdex/' '^branches/VALHALLA/CVSROOT/' '^branches/VALHALLA/eclipse/'
'^branches/VALHALLA/guide/' '^branches/VALHALLA/web/' '^tags/ASM_GUIDE'
'^tags/ASMDEX' '^tags/beforepref' '^tags/BYTECODEOUTLINE' '^tags/JORM_'
'^tags/ASM_\d[^/]*/CVSROOT' '^tags/ASM_\d[^/]*/eclipse' '^tags/ASM_\d[^/]*/
web' '^tags/Root_[^/]*/CVSROOT' '^tags/Root_[^/]*/web' '^tags/start/web' |
repocutter pathrename '^trunk/asm/' 'trunk/' | repocutter pathrename
'^branches/([^/]*)/asm/' 'branches/\\1/' | repocutter pathrename '^tags/
([^/]*)/asm/' 'tags/\\1/' > asm_only.dump


-- 
You receive this message as a subscriber of the [email protected] mailing list.
To unsubscribe: mailto:[email protected]
For general help: mailto:[email protected]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws