{"thread":{"id":"17473","subject":"How to move subdirectories from one svn repos to another.","startedAt":"2009-01-31T12:33:36Z","lastAt":"2009-01-31T12:33:36Z","messageCount":1,"participants":["Josef Wolf"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"102692","messageId":"20090131123336.GA1702@raven.wolf.lan","threadId":"17473","inReplyTo":null,"subject":"How to move subdirectories from one svn repos to another.","fromName":"Josef Wolf","fromEmail":"jw@raven.inka.de","sentAt":"2009-01-31T12:33:36Z","receivedAt":"2009-01-31T12:33:36Z","isPatch":false,"sender":{"key":"jw@raven.inka.de","avatar":null},"body":"Hello,\n\nI would like to move a complete subdirectory with all its history from\none svn repository to another.\n\nFor this, I have created a git repository with the two subversion\nrepositories as remotes:\n\n\n  REPOSROOT=https://foo.bar.com/repos\n\n  mkdir -p migrate\n  cd migrate\n  git svn init --stdlayout $REPOSROOT/my-repos\n  \n  for i in my-repos their-repos; do\n    git config svn-remote.$i.url                   $REPOSROOT/$i\n    git config svn-remote.$i.fetch         trunk:refs/remotes/$i/trunk\n    git config svn-remote.$i.branches branches/*:refs/remotes/$i/*\n    git config svn-remote.$i.tags         tags/*:refs/remotes/$i/tags/*\n    git svn fetch -R $i\n    git checkout -b $i $i/trunk\n  done\n  \n  git gc\n\n\nNow I would like to move one directory (call it bar) from my-repos\nto their-repos.  Problem is: there are thousands of changesets in\nthis directory.  So I got somewhat stuck (I am new to git).  Do I\nhave to cherry-pick every changeset separately?  Or is there some\nway to merge all the changesets touching this specific directory?\n\nAny hints?\n"}]}