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

Re: cvs2svn - is dump file platform portable?

From: Stefan Sperling <stsp_at_elego.de>
Date: Wed, 13 Dec 2017 17:22:48 +0100

On Wed, Dec 13, 2017 at 03:33:45PM +0100, Bo Berglund wrote:
> While investigating the methods to use when migrating our CVS
> repositories from CVS to SVN I converted one of the smaller CVS
> respositories to an svn dump file using cvs2svn 2.5.0 on an Ubuntu
> Server 16.04.3 machine.
>
> Then I moved the dump file over to the target Windows 2016 Server
> where I had just installed VisualSVN and tried to use the VisualSVN
> GUI tool to load the dump into a new repository. But it threw an error
> box displaying:
> "Could not convert ' 2' into a number"
>
> Next I tried to load it from the command line:
>
> svnadmin load \SVNREPOS\bosse < bosse-dump
> ' into a number04: Could not convert ' 2
>
> Strange output and it stopped. Same basic error...
>
> Then I went back to the Ubuntu machine and loaded the dump file into
> svn there and it worked just fine.
>
> So I made a dump from the newly loaded repository on Ubuntu and went
> back to Windows 2016 and repeated the load command with the new dump
> file.
> This time it worked without errors!
>
> So my question is:
> Is the dump file format from cvs2svn platform dependent such that it
> will not work if moved from Linux to load it on Windows?
>
> It seems like dump files from svn itself work when moved between
> platforms.
> (Both systems have svn 1.9.7)
>
> --
> Bo Berglund
> Developer in Sweden

How did you copy the dump file from Windows to Ubuntu?

Beware of Windows tools which change line endings!
I have seen that happen before and it destroyed dump files.

Zip the dump file before copying it away from windows to make
sure it does not get mangled on the way.
Received on 2017-12-13 17:23:14 CET

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.