Well, I just loaded a 115M test file into my Emacs. But yes, in general,
that's not a particularly good solution. My choice would be to use Perl,
disable all the complex character set interpretation and use "sysread" and
"syswrite" to access the file without interference from the C library. Then
do some minimal level of parsing, so parts of versioned files that look like
control information get skipped over.
Dale
-----Original Message-----
From: roland@kanaha.am.mot.com [mailto:roland@kanaha.am.mot.com]On
Behalf Of Roland Besserer
Sent: Thursday, December 30, 2004 2:24 PM
To: users@subversion.tigris.org
Subject: Re: SVN Book Method for Splitting Repos doesn't work
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
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Dec 30 22:15:22 2004