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

Re: Creating (or renaming to) trunk after the fact...

From: Ryan Schmidt <subversion-2007a_at_ryandesign.com>
Date: 2007-03-26 05:55:25 CEST

On Mar 25, 2007, at 21:57, Robert La Ferla wrote:

> I created a repository a while back as:
> svn+ssh://myhost/coderepository/Tools
> and I have since made many commits to it.
> I now want to create branches and I want to change the main trunk to:
> svn+ssh://myhost/coderepository/Tools/trunk
> How do I do it? I tried svn mv but that gave me an error: "Cannot
> move URL into itself."

Something like this should do it:

svn checkout svn+ssh://myhost/coderepository/Tools
cd Tools
svn mkdir trunk
for DIR in `each directory in Tools that is not trunk`; do
        svn mv $DIR trunk
svn ci -m "Move everything into new trunk"

To reply to the mailing list, please use your mailer's Reply To All  
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Mar 26 05:55:53 2007

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.