Need to restructure repo folders: Problem: SVN COPY is recursive
From: <Tim.Williams_at_ucb.com>
Date: Fri, 15 Mar 2013 19:11:17 +0000
Hi folks,
We are changing our folder structure in the SVN repository and need to "map" content from old folders to the new folders. I was investigating the use of SVN COPY but the command is recursive, which leads to problems for us.
Original Folders
And we are moving to a new structure where content from \a is copied to \d, \b to \e and \c also to \e:
I can't do a SVN COPY of \b to \e because I would get:
The only solution I can think of is to script a copy process on a file-by-file basis by first getting a list of files in folder \c, then SVN COPY each file individually into folder \e. Repeat for all folders. I can this in PERL but it seems like a long journey to get to the result...
What am I missing? Is my approach flawed?
Note that we want to keep the original structure in place as well as have the new one which is why I am playing with COPY instead of MOVE or SWITCH.
Cheers,
Tim
________________________________
(Ref: #*UBI0111) [Ref-UBI0111]
|
This is an archived mail posted to the Subversion Users mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.