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

RE: Is there a clean way to move a-project to a-project/trunk

From: Edward Ned Harvey <svn_at_nedharvey.com>
Date: Wed, 29 Sep 2010 10:12:34 -0400

> From: Rice Yeh [mailto:riceyeh_at_gmail.com]
>
>   I am trying to separate my project a-project into a-project/trunk and
> a-project/branches. First, I like to move a-project to a-project/trunk.
> But this is not allowed since trunk is inside a-project. I might first
> move a-project to tmp and then move tmp to a-project/trunk. But the tmp
> directory is created in repository and this seems not elegant. Is there
> a clean way to do this?

First, ensure everyone has done all their commits. You're about to modify
every file, so you would cause conflicts for any un-committed changes people
may have.

cd a-project
svn mkdir trunk
svn mv * trunk
svn commit -m 'moved to trunk'

And then everyone does "svn update"
Received on 2010-09-29 16:13:22 CEST

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.