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

Re: Directories directly in project root

From: Marcin Zajączkowski <mszpak_at_wp.pl>
Date: 2007-12-07 23:39:15 CET

On 2007-12-05 23:09, Ryan Schmidt wrote:
> On Dec 5, 2007, at 15:42, Marcin Zajączkowski wrote:
>
>> I inherited a project in which someone put files and directories
>> directly in project root directory:
>>
>> ProjectRoot
>> |-Module1
>> |-Module2
>> |-someFile
>> |-someOtherFile
>>
>> I would like to make a branch, but that structure doesn't help. I could
>> copy files and directories directly from ProjectRoot to
>> branch/someBranch, but even so I think I could have later problems with
>> svnmerge.
>>
>> Moving files to ProjectRoot/trunk could confuse a history.
>>
>> Maybe you met that situation?
>> Do you have any suggestion what to do to fix it best?
>
> Subversion has no concept of a project or a project root. It's just
> files and directories.
>
> You should feel free to reorganize now.
>
> svn checkout http://url/to/ProjectRoot
> cd ProjectRoot
> svn mkdir trunk branches tags
> svn mv Module1 trunk
> svn mv Module2 trunk
> svn mv someFile trunk
> svn mv someOtherFile trunk
> svn ci -m "Creating trunk/branches/tags directories and moving
> everything into trunk"
> cd ..
> rm -rf ProjectRoot

I worried about history of changes (that application was development for
some time), but in fact files and directories moved to trunk contain
older operations.

Thanks for your help
Marcin

> Now you can check out just the trunk, and create branches and tags as
> per the book ( http://svnbook.org/ )
>
>
> Everyone who had an existing working copy of http://url/to/ProjectRoot
> will have to switch it to the new url:
>
> cd working-copy
> svn switch http://url/to/ProjectRoot/trunk

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Dec 7 23:40:00 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.