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

Having trouble migrating a single set of directories from one repo to another

From: Rick Mann <rmann_at_latencyzero.com>
Date: 2007-02-08 20:25:29 CET

Hi. I have a subversion repo that works just fine (v 1.4.3, BDB 4.5).
It's set up like this:

host1/repo/
     proj1/
         trunk
     proj2/
         trunk
     .
     .
     .

etc. That is to say, I I get this:

$ svn ls svn://host1/
repo/

On the same machine (but under a different IP address), I'm creating
a new repo. (I plan to run two svnserves, each bound to a particular
IP address.)

I want to move host1/repo/proj2 to the new repo (it doesn't have to
be under "repo", but it probably should be under "proj2").

I've tried a few variants of using svnadmin dump/load and
svndumpfilter. The only one that succeeded in actually loading
anything into the new repository was a full dump and load, with no
filtering, but that brings in too much stuff (proj1 and a bunch of
others). Filtering on /repo/proj2 (ignoring empty revisions and
renumbering, or not) generates progress information that seems to
make sense, but the subsequent load operation results in an empty repo.

[The following are done as the original repo user]

$ svnadmin dump repo > lzdump
* Dumped revision 0.
   .
   .
   .
* Dumped revision 197.

$ cat lzdump | svndumpfilter include --drop-empty-revs --renumber-
revs /repo/darbon > d.txt
Including (and dropping empty revisions for) prefixes:
    '/repo/darbon'

Revision 0 committed as 0.
Revision 1 skipped.
   .
   .
   .
Revision 133 skipped.
Revision 134 committed as 1.
   .
   .
   .
Revision 187 committed as 54.
Revision 188 skipped.
Revision 189 skipped.
Revision 190 committed as 55.
   .
   .
   .
Revision 197 committed as 62.

Dropped 135 revision(s).

Revisions renumbered as follows:
    197 => 62
     .
     .
     .
Dropped 588 node(s):
    '/repo'
    '/repo/.gdbinit'
    '/repo/React'
     .
     .
     .
    '/repo/zfs/trunk/usr/src/uts/common/sys/nvpair_impl.h'

[The dropped nodes do NOT include "darbon"]

[The following are done as the second repo user]

$ svnadmin create ~/repo --fs-type bdb
$ svnadmin load ~/repo < d2.txt
<<< Started new transaction, based on original revision 1
svnadmin: File not found: transaction '1', path 'repo/darbon'
      * adding path : repo/darbon ...

I've tried adding a (nearly) empty "repo" directory to the new repo
to help it out, but I get this:

$ mkdir repo
$ touch repo/test
$ svn import --username rmann repo svn://svn.darbon.org
Adding repo/test

Committed revision 1.
$ svn ls svn://svn.darbon.org/repo
svn: URL 'svn://svn.darbon.org/repo' non-existent in that revision

I'm sure I'm just off by a bit, but I'm puzzled and frustrated. I
don't recall how I got my original repo to have a "repo" root, and I
don't seem to be able to get that created here.

Can someone please help?

Thank you!

-- 
Rick
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Feb 8 20:26: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.