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