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

Re: SVN Book Method for Splitting Repos doesn't work

From: Roland Besserer <roland_at_motorola.com>
Date: 2004-12-30 20:23:39 CET

Using GNU sed solves the problem. Loading it in either Emacs or vim
wasn't really an option as the dump file is 115MB and the database
is expected to grow and I really want to process these huge dump files
with stream oriented tools, not an editor :-)

roland

Scott Hughes<Scott.Hughes@dalsemi.com> writes:

> > Still leaves me at a loss why a simple sed script like:
> >
> > sed 's|^Node-path: documentation/|Node-path: |' <
> > dump1 > dump2
> >
> > which removes the leading 'documentation/' part from all node paths
> > would create this error on running 'svnadmin load newrepo < dump2':
>
> I ran into this same issue. The problem I believe is that 'sed' is not
> suited for binary data. Also, if you have any text files in your repo which
> use '\r\n' line endings, sed will convert these to '\n'. That was my
> experience after lots of trial and error. I found the best way to get the
> same result was to open the file in 'vim' and executing a similar regular
> expression: ":%s/Node-path: doc\//Node-path: /"
>
> Scott
> --
> Scott Hughes - Engineer
> shughes aht dalsemi daut com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Dec 30 20:25:59 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.