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

Trouble with svndumpfilter and svnadmin load

From: Felix Collins <felix_at_keyghost.com>
Date: 2004-06-30 06:56:52 CEST

Hi All,
I am trying to split up a single repository that holds several projects
into multiple repositories. I read the svn book. I'm following the
example at
http://svnbook.red-bean.com/svnbook/ch05s03.html#svn-ch-5-sect-3.1.3

I can't get a repository to load.

I'm running svn 1.0.4 (r9844) on a win2k server box with apache2

So far this is what I've done (some names changed to protect the
innocent ;-)

svnadmin dump d:\repos\myrepos > myreposdump

type myreposdump | svndumpfilter include myproject --drop-empty-revs
--renumber-revs > myprojectdump

type myprojectdump | svndumpfilter exclude myprojectsub
--drop-empty-revs --renumber-revs > myprojectdumpclean

I then search and replaced all instances of "Node-path: myproject/" with
  "Node-path: "

I also removed some blocks that were deleting paths that did not exist
(causing the load to fail)

Now when I load it using ...

svnadmin load d:\repos\myproject < myprojectdumpclean

It stops at a block early on that says...

Revision-number: 5
Prop-content-length: 142
Content-length: 142

K 7
svn:log
V 30
Directory trunc\tools created.
K 10
svn:author
V 16
joe
K 8
svn:date
V 27
2004-03-12T10:29:34.316125Z
PROPS-END

Node-path: trunk/tools
Node-action: add
Node-kind: dir
Content-length: 0

The error message from svnadmin is...

<<< Started new transaction, based on original revision 5
      * adding path : trunk/tools ...svn: File not found: transaction
'5', path 'trunk/tools'

I'm not sure why this is failing. Of course the "File" is "not found",
it is trying to create a directory.

Anyone got any ideas here? I'm already up to my elbows in svn dump. It
seems that you can't use the dump facility for much without hacking the
dump file by hand. The example in the book even suggests removing bits
of the dump file by hand! So if a fix requires further manipulation of
the file that is OK.

Thanks in advance,
Felix

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jun 30 06:59:40 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.