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

Re: Existing Repos layout change - how badly will this break stuff ?

From: Toby Thain <toby_at_smartgames.ca>
Date: 2007-12-18 15:27:39 CET

On 18-Dec-07, at 3:58 AM, Richard Shea wrote:

> I want to change my repository layout but before I do I'd like some
> advice on how/whether it will break things ...
>
> I have a repos like this ..
>
> /trunk
> /trunk/foo.c
> /trunk/bar.c
> /branches
> /tags
>
> ... and I want to change it to this ...
>
> /trunk
> /trunk/appname/
> /trunk/appname/foo.c
> /trunk/appname/bar.c
> /trunk/appdb/
> /trunk/appdb/insert.sql
> /trunk/appdb/delete.sql
> /branches
> /tags
>
> ... If I were to make that change and in the future I go looking at
> changes made to foo.c is the repos layout change described going to
> 'break' the chain at the point the layout change was made ?

As Ryan says, you can do this in a way where history is kept.
However, if you're new to Subversion you may not realise the correct
way. I have certainly seen people use the 'wrong' way and lose
history (by deleting then adding in new location).

The way that I would do it is, in working copy trunk/ dir:
  * svn mkdir appname appdb
  * svn move foo.c appname
  * svn move bar.c appname
  * svn commit

Stefan's suggestion of testing first in a sandbox repo, to gain
confidence about what is going on, is a great idea.

--Toby

>
> If so is there some way of getting around that problem ?
>
> I thought about creating a brand new repos and (in some way that I
> don't
> know of) importing the existing repos into it.
>
> Any advice welcomed.
>
> thanks
>
> Richard.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Dec 18 15:28:04 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.