[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: Ryan Schmidt <subversion-2007b_at_ryandesign.com>
Date: 2007-12-05 23:09:48 CET

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

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 Wed Dec 5 23:10:19 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.