Have a standard subversion layout with one branch :
Repo_1
repo_root
|-branches
|-branch_one
|-tags
|-trunk
And a second repository,
Repo_2
repo_root
|-branches
|-tags
|-trunk
|-folder1
I want to export Repo_2/trunk/folder1 content to Repo_1/branches/branch_one/folder1
I'm making the folder dump :
svnrdump dump svn://mysvnserver/Repo_2/trunk/folder1 > folder1.dump
Then loading it to my Repo_1 :
svnadmin load Repo_1 --parent-dir branches/branch_one < folder1.dump
And getting the following Repo_1 structure :
repo_root
|-branches
|-branch_one
|-trunk
|-folder1
|-tags
|-trunk
getting the trunk folder I don't need there. Is there any way to plug in my "folder1" directly to "branch_one" ?
Re-read carefully and fully Filtering Repository History in SVN Book, pay special attention on warnings
You forgot, that dump-file holds all relative paths for included in dump nodes inside file and
--parent-dir
change only starting mount-point of mentioned in dump nodes, not relative locationFrom my own experience I prefer always filter dumps with
svndumpfilter include
, even if dump was created with svnrdump for only part of repo-tree: it produce less (0) errors orsvnadmin load
. For example, moving remoteREPO/trunk/lib
to the same path on local repository (there default repository-tree already exist) implies to me(
include --pattern
just because plaininclude lib
produced worse result, but it can be hands-related only problem)and this filtered dump can be easy loaded
whereas "dumb" dump
>svnrdump dump URL/trunk/lib > dump.dmp
give error on load-attempt