[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: Sven Uhlig <svenuhlig_at_web.de>
Date: Fri, 15 Mar 2013 21:41:15 +0100

Am 15.03.2013 21:30, schrieb Tim.Williams_at_ucb.com:
> 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."
>

I dont think you have to create a new revision for each single file.

Just do svn copy and then do a svn delete for all files that you dont
want to have copied.

e.g.

svn copy /foo/bar /new
svn delete /new/bar/baz

svn copy /foo/qwx /new/bar
svn delete /new/bar/qwx/abc

...

svn commit
Received on 2013-03-15 21:41:54 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.