Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>This is what did the trick for me:</p> <ol> <li><p>Create a svn repository dump file for later processing:</p> <p><code>svnadmin dump /svn/old_repo &gt; /tmp/svn/repository.dump</code></p></li> <li><p>Use <code>svndumpfilter</code> to split dump file into separate dumps:</p> <p><code>svndumpfilter include /trunk/scr/folder1 --drop-empty-revs --renumber-revs --preserve-revprops &lt; /tmp/svn/repository.dump &gt; /tmp/svn/dump/folder1.dump</code></p></li> <li><p>Create new empty svn repository</p> <p><code>svnadmin create /tmp/svn/repos/folder1</code></p></li> <li><p>Create root dir insde new empty svn repository. This is very important! I missed that step and almost gone mad due to some unclear svnadmin erros:</p> <p><code>svn mkdir file:///tmp/svn/repos/folder1/trunk/src/folder1 --parents -m "Go"</code></p></li> <li><p>Load new dump into empty svn repository:</p> <p><code>svnadmin load /tmp/svn/repos/folder1 &lt; /tmp/svn/dump/folder1.dump</code></p></li> <li><p>Now some git magic. Note the <code>-T</code> arg - it's very handy. I used this to make my life easier and make <code>folder1</code> a root for git repo. If I didn't do that, I'd end up with a git repo structure like this: <code>trunk/src/folder1/*</code> (that is what I had initially in my svn repo). And I wanted to just have the <code>folder1</code> as a root:</p> <p><code>git svn clone -T /trunk/src/folder1 file:///tmp/svn/repos/folder1 /new/path/folder1</code></p></li> </ol> <p>And that was it. Steps 2-7 repeat for each directory for which you want to have a new git repository. I ended up writing a simple script for that.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload