svn - How do I copy the files from one branch to another branch? -
i have this:
/repo/branch-a/foo/apples /repo/branch-a/foo/oranges /repo/branch-a/bar/broccoli /repo/branch-a/bar/potato /repo/branch-b/snazz /repo/branch-b/jazz
now want move snazz folder third subfolder of branch-b 'barfoo'
eg, afterwards, like:
/repo/branch-a/foo/apples /repo/branch-a/foo/oranges /repo/branch-a/bar/broccoli /repo/branch-a/bar/potato /repo/branch-a/barfoo/snazz /repo/branch-b/barfoo/jazz /repo/branch-b/snazz /repo/branch-b/jazz
the way had tried this, check out branch-a, , check out branch -b. create barfoo folder in branch-a, , copy snazz , jazz folders barfoo folder.
the problem this, copy copies .svn folders, , when try commit, files in folders still pointing @ branch-b repo.
i go through , delete .svn folders, if there lot of subfolders, quite time consuming, , not solution.
if work windows/tortoise svn:
i checkout repo, move snazz , jazz right mouse button branch-a branch-b , select "svn move versioned items here". way have svn history preserved.
Comments
Post a Comment