I want to convert an existing SVN repository with a nonstandard layout that looks like this:
/ (root)
/trunk
regular trunk stuff that I would like to make the "master" branch
/folder1
files that I would like to make a separate branch "folder1"
/folder2
files that I would like to make a separate branch "folder2"
/folder3
files that I would like to make a separate branch "folder3"
... to a git repository, preserving history.
The catch is that folder1
, folder2
, and folder3
are not branched off from some point in trunk
; they are a separate set of files, and they are not rooted in some convenient subdirectory (which is what makes this question differ from that one).
The desired git branch layout would look like:
master -----+------(trunk r1)------(trunk r2)----...
|
folder1 \-----(folder1 r1)----(folder1 r2)---...
|
folder2 \-----(folder2 r1)----(folder2 r2)---...
|
folder3 \-----(folder3 r1)----(folder3 r2)---...
(Those revision numbers aren't actual svn revision numbers, just the number of the commit in that particular folder)
I've tried using git svn
but it seems to want the branches to be in a single directory, containing one subfolder per branch. The problem is that if I do this, I would have to use /
(the root directory) as branches directory, which would make trunk
a separate branch (while I want to use it as the master
branch).