[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: Ryan Schmidt <subversion-2010d_at_ryandesign.com>
Date: Wed, 29 Sep 2010 12:57:29 -0500

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.

And then, as I said before, you'll have to take care of any properties you might have set on "." (svn:ignore, perhaps?), by which I mean you'd have to delete those properties on "." and set them again on "trunk".

> svn commit -m 'moved to trunk'
>
> And then everyone does "svn update"
Received on 2010-09-29 19:58:12 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.