[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: Bob Archer <Bob.Archer_at_amsi.com>
Date: Wed, 29 Sep 2010 14:07:14 -0400

> On Sep 29, 2010, at 09:12, Edward Ned Harvey wrote:
>
> >> 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
>
> Well, that would try to move the new trunk into trunk too, wouldn't
> it? I think you have to selectively "svn mv" each individual item
> that is not trunk into trunk.

Try...

svn mv a-project trunk
svn cd a-project
svn trunk a-project/trunk

That will retain all your history.

BOb
Received on 2010-09-29 20:07:54 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.