You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by David Summers <da...@summersoft.fay.ar.us> on 2002/12/21 08:11:25 UTC

Alternate DUMP format question

I'm playing with an alternate DUMP format and would like to be able to 
quickly determine if a file is "binary" or "text" so I can tell "svnadmin 
dump" to encode the binary file on output.  I noticed that currently "svnadmin 
dump" just dumps the 8-bit output without checking.

What method or procedure could I use to effeciently determine what the 
data type is before I dump it out?

   Thanks!

-- 
David Wayne Summers          "Linux: Because reboots are for hardware upgrades!"
david@summersoft.fay.ar.us   PGP Key: http://summersoft.fay.ar.us/~david/pgp.txt
PGP Key fingerprint =  C0 E0 4F 50 DD A9 B6 2B  60 A1 31 7E D2 28 6D A8 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Alternate DUMP format question

Posted by Karl Fogel <kf...@newton.ch.collab.net>.
David Summers <da...@summersoft.fay.ar.us> writes:
> What method or procedure could I use to effeciently determine what the 
> data type is before I dump it out?

You could look for an `svn:mime-type' property.  Look at the
import/add code for more details; it tries to autodetect binary
files.  But since it has already done the work, you should just rely
on the mime-type as recorded in the repository.

-K

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org