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

Re: svndumpfilter on Win32

From: Ulrich Eckhardt <eckhardt_at_satorlaser.com>
Date: 2004-12-29 09:22:09 CET

anonymous anonymous wrote:
> I am trying to use svndumpfilter on a Windows platform to create a new
> repository for each project in one old repository. I have followed
> the documentation in order to do this by first dumping the old
> repository into a dumpfile like this:
>
> svnadmin dump repos > repos-dumpfile
>
> Next, the documentation says to pipe the linux cat command through the
> svndumpfilter program like this:

<rant> Argh! 'cat' is a program, not a 'linux command' - whatever that should
be. It's existed for much longer than aforementioned OS kernel, which btw is
written with a capital L. </rant>

> cat repos-dumpfile | svndumpfilter include project1 > project1-dumpfile
>
> I have tried this with the following methods, since DOS does not
> include cat:
>
> type repos-dumpfile | svndumpfilter include project1 > project1-dumpfile
> more repos-dumpfile | svndumpfilter include project1 > project1-dumpfile
> print /D:CON repos-dumpfile | svndumpfilter include project1 >
> project1-dumpfile

'type' itself says it is for textfiles, but a dumpfile isn't a textfile, so
that is possibly not a suitable tool.

> Also, I downloaded the cat program for DOS from
> unxutils.sourceforge.net and tried these methods:
>
> cat repos-dumpfile | svndumpfilter include project1 > project1-dumpfile
> cat –A repos-dumpfile | svndumpfilter include project1 > project1-dumpfile
> cat –B repos-dumpfile | svndumpfilter include project1 > project1-dumpfile
>
> where –A means all of the file and –B means to treat the file as a
> binary file.

Have you tried using both?

> In each case (that produced anything) the generated filtered dumpfile
> was very small. When I tried to load the filtered dumpfile into a
> newly created repository, it created all the revision numbers, but the
> repository remained empty (no data).
>
> Has anyone been successful using the svndumpfilter program on a
> Windows platform? If so, how!?

Using Cygwin, yes. ;)

> Also, is this a functionality that the Subversion software should be
> able to accomplish without relying on an external program, i.e. cat?

You can, you just have to redirect input and output of dumpfilter:
  svndumpfilter ... < inputfile > outputfile
assuming your shell supports it, which might be the problem with the native
shell under MS Windows (possibly depending on the version thereof). I tried
under the shell of MS Windows 2000 and using that syntax for a textfile
works.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Dec 29 09:23:27 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.