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

Binary files

From: Ben Kucenski <kalvinb602_at_hotmail.com>
Date: 2004-06-15 04:28:13 CEST

I'm not sure the extent of Subversion handling binary files. If I retrieve
an older revision of a binary file using SVN commands I get back something
that isn't the complete file and I have no idea what it is.

My work around is simply to automatically append the revision number to the
file when it's updated if it's a binary file. When a binary file is
requested it checks to see what revision number the user wants and if that
file exists, the user gets that one, otherwise they get the file without a
revision number (the latest.)

The check to see if a file is binary, 256 bytes are read in and if any
characters are non-printable, it's treated as binary. Subversion can
already tell the difference between plain text and binary files. So I was
wondering if instead of having to code this functionality on top of SVN, if
it's a behavior that will be added. Or if I'm simply missing something.

Ben

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Jun 15 04:33:13 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.