git-svn clone within a specific revision range -


i'm trying use git-svn import brunch of projects hosted in svn server.

the repository structure looks follows

root     [...]     project 1         trunk         branches         tags     project 2         trunk         branches         tags     [...] 

what want achieve import svn history of project1 , project2.

unfortunately origin repository contains more 2 million revisions... full git-svn clone last forever.

so retrieved first , last revision of 2 projects , tried run

git svn clone -s https://svn.bansel.it/h2o/ \     --include-paths='^[/](project1|project2)' \     -r1788813:1792593 

where 1788813 first revision , 1792593 last i'm intrested in.

when exexute command runs withot error. notice network traffic, if later on try run git svn log

$ git svn log fatal: bad revision 'head' rev-list --first-parent --pretty=medium head --: command returned error: 128 

also target repository seems empty. missing something?

edit

i not able shut down svn repository after import, need bidirectional synchronization

your clone command wrong.

-s url https://svn.bansel.it/h2o/ tells git-svn @ https://svn.bansel.it/h2o/trunk, https://svn.bansel.it/h2o/tags , https://svn.bansel.it/h2o/branches. there not find , clone not contain commits , no head reference.

it might idea have 2 git repositories, 1 each of projects, 2 clone commands git svn clone -s https://svn.bansel.it/h2o/project1/ -r1788813:1792593 , git svn clone -s https://svn.bansel.it/h2o/project2/ -r1788813:1792593.

or if want both in same repository within different remotes can clone commands same git repository target, using --prefix=origin-project1 , --prefix=origin-project2 2 projects in 2 separate remotes. think should use separate git repos two.

note: aware need revision argument each subsequent fetch far remember, might wrong, don't constrain revisions git-svn.


Comments