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

Migrating repo data and changing structure.

From: Shane McGovern <smcgovern_at_affordablemagic.com>
Date: Sat, 16 Feb 2008 10:56:27 -0800

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi

I hope you can help.

I am doing 2 things:

1. Migrating my repo from a local machine to a remote host.

2. Trying to fragment my single large repo into smaller repos.

So, my original repo is:

/usr/local/svn/repos

It contains a bunch of projects, here are some examples, with their
structure:

repos
~ |
~ |_www.hifive.com
~ | |_ trunk
~ | | |_ *some files*
~ | |
~ | |_ tags
~ | | |_ 010207.1.0
~ | | | |_ *some files folders representing trunk at point x*
~ | | |_ 050608.1.1
~ | | |_ *some files folders representing trunk at point x*
~ | |
~ | |_ branches
~ | |_*some files folders representing trunk at point x*
~ |
~ |_www.repoman.com
~ |_ trunk
~ | |_ *some files*
~ |
~ |_ tags
~ | |_ 050603.1.0
~ | | |_ *some files folders representing trunk at point x*
~ | |_ 010401.1.2
~ | | |_ *some files folders representing trunk at point x*
~ | |_ 030308.7.3
~ | | |_ *some files folders representing trunk at point x*
~ | |_ 040109.0.1
~ | |_ *some files folders representing trunk at point x*
~ |
~ |_ branches
~ |_*some files folders representing trunk at point x*

If I checkout www.repoman.com, I get the structure highlighted above. If
however I dump repos and then run svndumpfilter to only include
www.repoman.com, all I see is its initial commit to repos, the version
of files in trunk, tags and branches are essentially missing. Why?

These are the commands I have been using:

$: svnadmin dump /usr/local/svn/repos -q -r 0:HEAD > repos.dumpfile

This gets a huge dump of repos. To get www.highfive.com I run:

$: svndumpfilter include www.highfive.com < repos.dumpfile >
www.highfive.com.dumpfile

I then import it into a new repos made especially for www.highfive.com
rather than lump it again into a single repos as it was originally:

$: svnadmin create www.highfive.com

$: svnadmin load www.highfive.com < www.highfive.com.dumpfile

When I check the new www.highfive.com repo, sure enough most of the data
is missing.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHtzHaRZgP6dNgieoRAtPwAJwLEWZi2pqvLNokVvK5DYHOzIFwNACfUsSX
/jhTqO9BKdmDcb9Pubxp1Lc=
=On19
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org

Received on 2008-02-16 19:56:51 CET

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.