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

RE: Recreate repository with proper structure trunk/branches/tags - without losing change history?

From: Ian Brockbank <Ian.Brockbank_at_wolfsonmicro.com>
Date: 2004-09-29 17:15:45 CEST

Hi Emmanuel,

> I've been using SVN for months and everything is fine (we
> love it!). I need to use branches and merges now; however, I
> haven't created my repository with a "proper" structure
> /trunk /branches /tags as it is recommended in the
> documentation (OK, my fault).
>
> Is there a simple way of recreating/changing my repository
> without losing change history?
>
> I.e. take my current repo/branch and move it to a
> subdirectory "trunk", and then start making branches and tags?

svn mkdir http://path/to/repos/trunk/
[for each entry in the repository root:]
svn move http://path/to/repos/entry http://path/to/repos/trunk/entry
svn mkdir http://path/to/repos/branches/
svn mkdir http://path/to/repos/tags/

There's probably a way of wildcarding the moves, but that's the basic
principle. In 1.1 everything will work properly with the history before
the move, but the history is still maintained in 1.0.

HTH,

Ian Brockbank
Senior Applications Software Engineer
e: ian.brockbank@wolfsonmicro.com / apps@wolfsonmicro.com
scd: ian@scottishdance.net
t: +44 131 272 7145
f: +44 131 272 7001

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Sep 29 17:16:01 2004

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.