编写svn2git的KDE规则是否可无需svneverever,改用TortoiseSVN repo-browser?
Absolutely! You don’t need svneverever to craft KDE’s SVN-to-Git migration rules—TortoiseSVN’s Repo-Browser is more than capable of getting you all the structural info you need. Here’s how to do it effectively:
Map core SVN directories first
Fire up the Repo-Browser and navigate to your KDE SVN repo’s root. You’ll be able to visually identify standard SVN structures liketrunk,branches, andtags, plus KDE-specific subproject hierarchies (e.g.,/projects/kde/apps/,/projects/kde/libs/). Take notes of which directories hold active code, and which are archival or unused—this helps you avoid cluttering your Git migration with dead content.Refine branch/tag mapping rules
For each valid branch or tag in the Repo-Browser, record its full SVN path. KDE’s migration typically follows standard SVN-to-Git conventions: maptrunkto Git’smain/master, each subdirectory underbranches/to a Git branch, and each entry undertags/to a Git tag. The Repo-Browser lets you verify exactly how these directories are nested (e.g.,/projects/kde/kate/branches/4.14.x), so you can write precise paths in your migration rules.Handle non-standard or nested structures
KDE repos sometimes have nested subprojects, tooling directories, or legacy code paths. Use the Repo-Browser to drill down into these folders—check their commit history (via the "Show Log" option) to see if they’re still maintained, and decide whether to include them in the main Git repo or split them into separate repos. This hands-on exploration ensures your migration rules account for all edge cases specific to the KDE project you’re working on.Validate paths before finalizing rules
Withoutsvneverever’s automated structure report, you’ll want to double-check that the paths you’re including are valid. Use the Repo-Browser to confirm that each directory you’ve noted has existing commits (not empty or abandoned folders). You can also run a small test migration withgit svn cloneusing your draft rules to spot any missing or incorrect paths early.
内容的提问来源于stack exchange,提问作者Idris.AH

