I have a normal SVN structure:
http://server/DEV/Project/trunk
http://server/DEV/Project/branches
Then I fork with the following command:
svn copy -m "message" "http://server/DEV/Project/trunk@123" "http://server/DEV/Project/branches/rel123"
Everything works fine, and the content /trunk@123is placed under the new branch path /branches/rel123. Things are good.
Added: / DEV / Project / branches / rel123 (copying along the path: / DEV / Project / trunk, Revision, 123)
Problem:
If someone accidentally deletes the branch again , I expect the failure to occur with "svn: E160020: Path 'rel123' already exists." However, this does not fail.
Repeating the same command svn copyactually copies /trunkto/branches/rel123/trunk
Added: / DEV / Project / branches / rel123 / trunk (copying along the path: / DEV / Project / trunk, Revision, 123)
, /branches/rel123, , "trunk" (/branches/rel123/trunk), .
:
, SVN , , ( http://server )
svn copy -m "message" "/DEV/Project/trunk @123 /" "/DEV/Project/branches/rel123"
svn copy -m "message" "/DEV/Project/trunk / @123" "/DEV/Project/branches/rel123"
svn copy -m "message" "/DEV/Project/trunk @123" "/DEV/Project/branches/rel123 /"
svn copy -m "message" "/DEV/Project/trunk @123 /" "/DEV/Project/branches/rel123 /"
svn copy -m "message" "/DEV/Project/trunk / @123" "/DEV/Project/branches/rel123 /"
- ? ? " "?