in preparation to change the VCS from SVN to Git on legacy projects, I stumbled about the necessity to arrange the projects in a certain way to make proper use of svn2git
, that is
- Project_1
- trunk/
- lib.../
- tags/
- branches/
- Project_2 ...
I know that directories, including their history can be moved to new folders using svn mv --parents SRC DST
. Yet I face the particular challenge of such structure:
- trunk
- Project_1
- lib.../
- Project_2
- lib.../
- branches
- branch_1
- Projekt_1.../
- Projekt_2.../
- branch_2
- tags
Is there a way to merge the history of trunk/Project_1
, branches/branch_1/Project_1
etc into one new folder Project_1
with corresponding subdirectories as svn2git expect ?
My current solution is:
svn mv --parents trunk/Project_1 ./Project_1/trunk
svn mv --parents branches/branch_1/Project_1 ./Project_1/branches/branch_1
, but obviously the history of the new dir "Project_1" is empty