Need to restructure repo folders: Problem: SVN COPY is recursive

2013-03-15 Thread Tim.Williams
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.
For example, let's say our structure looks like:

Original Folders
\a
\a\b
\a\b\c

And we are moving to a new structure where content from \a is copied to \d, \b 
to \e and \c also to \e:
New Folders
\d
\d\e

I can't do a SVN COPY of \b to \e because I would get:
\d\e\c

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


UCB BIOSCIENCES, Inc.
Mail P.O. Box 110167 - Research Triangle Park - NC 27709 - USA
Via Courier 8010 Arco Corporate Drive - Suite 100 - Raleigh - NC 27617 - USA
Phone +1 919 767 2555 - Fax +1 919 767 2570

(Ref: #*UBI0111) [Ref-UBI0111]

Legal Notice: This electronic mail and its attachments are intended solely for 
the person(s) to whom they are addressed and contain information which is 
confidential or otherwise protected from disclosure, except for the purpose for 
which they are intended. Dissemination, distribution, or reproduction by anyone 
other than the intended recipients is prohibited and may be illegal. If you are 
not an intended recipient, please immediately inform the sender and return the 
electronic mail and its attachments and destroy any copies which may be in your 
possession. UCB screens electronic mails for viruses but does not warrant that 
this electronic mail is free of any viruses. UCB accepts no liability for any 
damage caused by any virus transmitted by this electronic mail. (Ref: #*UG1107) 
[Ref-UG1107]



RE: Need to restructure repo folders: Problem: SVN COPY is recursive

2013-03-15 Thread Tim.Williams
I am not very good at giving examples on a Friday afternoon, admittedly.  I 
will try again.

Original Folders
\Barn\livestockNames.txt
\Barn\chickens\chickenNames.txt
\Barn\chickens\food\chickenFeed.txt

New Structure I want:
\NewBarn\livestockNames.txt
\NewBarn\birds\chickenNames.txt
\NewBarn\birds\chickenFeed.txt

If I use SVN COPY to copy chickenNames.txt to the new folder:

svn copy \Barn\chickens\  \NewBarn\birds\

I will get:
\NewBarn\birds\food\chickenFeed.txt

and I don’t want that folder called \food and its content.

Ugh. This is another bad analogy. It is much more complicated because I have 
MANY files in each folder remapped to many different folders and subfolders, 
which is why I had hoped to use a non-recursive way to getting just the folder 
contents and not subfolders.

I will look into svnmucc.  Thanks for the tip!

Tim

UCB BIOSCIENCES, Inc.
Mail P.O. Box 110167 - Research Triangle Park - NC 27709 - USA
Via Courier 8010 Arco Corporate Drive - Suite 100 - Raleigh - NC 27617 - USA
Phone +1 919 767 2555 - Fax +1 919 767 2570

(Ref: #*UBI0111) [Ref-UBI0111]

Legal Notice: This electronic mail and its attachments are intended solely for 
the person(s) to whom they are addressed and contain information which is 
confidential or otherwise protected from disclosure, except for the purpose for 
which they are intended. Dissemination, distribution, or reproduction by anyone 
other than the intended recipients is prohibited and may be illegal. If you are 
not an intended recipient, please immediately inform the sender and return the 
electronic mail and its attachments and destroy any copies which may be in your 
possession. UCB screens electronic mails for viruses but does not warrant that 
this electronic mail is free of any viruses. UCB accepts no liability for any 
damage caused by any virus transmitted by this electronic mail. (Ref: #*UG1107) 
[Ref-UG1107]



RE: Need to restructure repo folders: Problem: SVN COPY is recursive

2013-03-15 Thread Tim.Williams
Yes, it appears I am headed toward a wrapper script to copy one file at a time. 
 I wanted to make sure I was not missing something in SVN that would make it 
easier (a non-recursive copy, or something in svnmucc where I could copy a 
bunch a files and commit them all in a single new revision, for example).

It appears that I am stuck creating a new revision for every single file I need 
to move.  This will make the SVN Log history long and boring, but it appears 
there is not much else that can be done if my users want to retain the 
development history. Otherwise I would just SVN export it, remap it in a work 
area and commit it all in one big go.

Thanks for the sanity check, folks.

Tim


UCB BIOSCIENCES, Inc.
Mail P.O. Box 110167 - Research Triangle Park - NC 27709 - USA
Via Courier 8010 Arco Corporate Drive - Suite 100 - Raleigh - NC 27617 - USA
Phone +1 919 767 2555 - Fax +1 919 767 2570

(Ref: #*UBI0111) [Ref-UBI0111]

Legal Notice: This electronic mail and its attachments are intended solely for 
the person(s) to whom they are addressed and contain information which is 
confidential or otherwise protected from disclosure, except for the purpose for 
which they are intended. Dissemination, distribution, or reproduction by anyone 
other than the intended recipients is prohibited and may be illegal. If you are 
not an intended recipient, please immediately inform the sender and return the 
electronic mail and its attachments and destroy any copies which may be in your 
possession. UCB screens electronic mails for viruses but does not warrant that 
this electronic mail is free of any viruses. UCB accepts no liability for any 
damage caused by any virus transmitted by this electronic mail. (Ref: #*UG1107) 
[Ref-UG1107]