<div dir="ltr">Hello all,<div><br></div><div style>For the pywikibot project, I've been working on svn to git migration using the KDE svn2git tool. Thanks to all who have helped write this useful tool!</div><div style>
<br></div><div style>In our case, we wanted to split off a subdirectory in SVN to a seperate git repository, which would then be imported using git submodules. To do this, I implemented two things:</div><div style> - creating a .gitmodules file at a given revision</div>
<div style> - updating the submodule after a commit to the parent repository</div><div style><br></div><div style>The diff can be seen here: [1]. [2] (submodule) and [3] (main repository) show the resulting commits.</div>
<div style><br></div><div style>As you can see, everything is hard-coded at the moment - my Qt4-fu is too weak to make everything configurable... The implementation is also quite hackish, but I think this is acceptable for a one-time convert tool :-)</div>
<div style><br></div><div style>Best,</div><div style>Merlijn</div><div style><br></div><div style>[1] <span style="text-decoration:underline;color:rgb(17,85,204)"><a href="https://github.com/pywikibot/svn2git/compare/47ae01fd36d224f4777f8cb162be8ed4012f581c...master#diff-2">https://github.com/pywikibot/svn2git/compare/47ae01fd36d224f4777f8cb162be8ed4012f581c...master#diff-2</a></span><br>
</div><div style>[2] <a href="https://github.com/wikimedia/pywikibot-i18n/commit/5c9f1375148885cd97c872c1a6732cfd5e762dc0">https://github.com/wikimedia/pywikibot-i18n/commit/5c9f1375148885cd97c872c1a6732cfd5e762dc0</a></div>
<div style>[3] <a href="https://github.com/wikimedia/pywikibot-core/commit/db46d4be1bc2ea4547b19816746360b3dc95140e">https://github.com/wikimedia/pywikibot-core/commit/db46d4be1bc2ea4547b19816746360b3dc95140e</a></div><div style>
<br></div><div style><br></div></div>