I have the following directory structure in trunk:
trunk
- dir1
- dir2
-subdir1
-subdir2
I want to copy dir2/subdir2 to my https://mynewbranchurl
If I do svn cp ./dir2/subdir2 https://mynewbranchurl I see subdir2 directly under mynewbranch. What should I do to get dir2/subdir2/contents in mynewbranch?
I do not want to manually create dir2 in mynewbranch.
You should use the –parents option for the copy command:
In this way Subversion creates all intermediate directories (I am not sure if you need subdir2, please test it)