You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by anonymous anonymous <fl...@yahoo.com> on 2004/12/29 04:38:33 UTC
svndumpfilter on Win32
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:
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
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.
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!? Also, is this a functionality that
the Subversion software should be able to accomplish without relying
on an external program, i.e. cat?
Thanks in advance,
Floor
---------------------------------
Do you Yahoo!?
Yahoo! Mail - Find what you need with new enhanced search. Learn more.
Re: svndumpfilter on Win32
Posted by Ulrich Eckhardt <ec...@satorlaser.com>.
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