[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

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

From: olli hauer <ohauer_at_gmx.de>
Date: Fri, 15 Mar 2013 21:21:58 +0100

On 2013-03-15 21:07, Tim.Williams_at_ucb.com wrote:
> 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.
>

Hm, why do you copy the folder instead the single file ?

 svn copy \Barn\chickens\chickenFeed.txt \NewBarn\birds\

If you have a bunch of files you can do this quickly with a wrapper script
Received on 2013-03-15 21:22:00 CET

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.