You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Rick Mann <rm...@latencyzero.com> on 2007/02/08 19:25:29 UTC
Having trouble migrating a single set of directories from one repo to another
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
Re: Having trouble migrating a single set of directories from one repo to another
Posted by Rick Mann <rm...@latencyzero.com>.
On Feb 8, 2007, at 13:15 , Ryan Schmidt wrote:
> You could also just:
>
> svn mkdir svn://svn.darbon.org/repo
Well, that's much more sensible. I dismissed doing this thinking that
I knew svn didn't have that.
Now that I've done that, the import worked! Thanks!
--
Rick
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Having trouble migrating a single set of directories from one repo to another
Posted by Ryan Schmidt <su...@ryandesign.com>.
On Feb 8, 2007, at 13:25, Rick Mann wrote:
> 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 believe the *contents* of your local repo directory got imported
into the repository root. You should tell it that you want the
contents of the local repo directory to go into a directory repo in
the repository root:
svn import repo svn://svn.darbon.org/repo
> 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.
You could also just:
svn mkdir svn://svn.darbon.org/repo
--
To reply to the mailing list, please use your mailer's Reply To All
function
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org