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

Re: Combining multiple repositories into one?

From: David Kramer <david_at_thekramers.net>
Date: 2004-10-22 15:48:31 CEST

On Thu, 21 Oct 2004, Jacob Atzen wrote:

> On tor, okt 21, 2004 at 01:23:59 -0400, David Kramer wrote:
> > Let's say I have
> > /data/subversion/foo/devel/blinkled
> > /data/subversion/foo/devel/bufflog
> > /data/subversion/foo/devel/commom
> >
> > accessed as
> > svn://localhost/foo/devel/blinkled
> > svn://localhost/foo/devel/bufflog
> > svn://localhost/foo/devel/common
> >
> > I would like to move all of this mess so they become one repository at
> > svn://localhost/foo/devel
> > which would pull blinkled, bufflog, and common down, and they would share
> > version numbers, etc.
> >
> > How would I do that?
>
> How about:
> svnadmin dump blinkled > blinkled.svn
> svnadmin dump bufflog > bufflog.svn
>
> svnadmin create newrepos
>
> [create dir blinkled and bufflog in the new repository]
>
> cat blinkled.svn | svnadmin load --parent-dir blinkled newrepos
> cat bufflog.svn | svnadmin load --parent-dir bufflog newrepos

That did just what I need, with one problem. Expanding my "before"
example:
/data/subversion/foo/devel/blinkled/trunk
/data/subversion/foo/devel/bufflog/trunk
/data/subversion/foo/devel/commom/trunk

and I wanted
/data/subversion/foo/devel/trunk/blinkled
/data/subversion/foo/devel/trunk/bufflog
/data/subversion/foo/devel/trunk/commom

Fortunately I still had the brainpower at 1:00am to remember the dump
files are plaintext. So I just edited the paths in the dump file to be
common/foo.c, bufflog/foo.c, and blinkled/foo.c. Then I used trunk for
the --parent-dir and it all worked out great.

Thanks to everyone.

-- 
DDDD   The UNIX Epoch and the Year 2038 by William Porquet 
DK KD  A 32-bit counter will expire in little over a year.  A 64-bit
DKK D  counter will expire in little over 2^32 years, or roughly the time
DK KD  the sun is expected to expire.  The odds of your computer hardware
DDDD   surviving the forementioned event without reboot are very slim.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Oct 22 15:49:07 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.