You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Archie Cobbs <ar...@dellroad.org> on 2004/06/14 20:11:41 UTC

[PATCH] tiny addition to book

Hi,

I spent some time trying to figure out why our commit emails contained
differences even for binary files like MSWord documents. Eventually
I realized that 'svnlook diff' looks at the svn:mime-type keywords
to determine whether to explicitly show the diff.

This small fact is not documented in the Subversion book, so here's
a tiny patch to fix that.

These files had no MIME type because they were imported from a CVS
repository (note to Karl: does svn2cvs apply the same MIME type
heuristic that 'svn add' does?)

Also, I wrote a simple script that slurps in "mime.types" files (in
Apache httpd's format) and then scans a working hierarchy, setting
svn:mime-type for all files with recognized suffixes.. might be
useful for the SVN utilities project?

Cheers,
-Archie

__________________________________________________________________________
Archie Cobbs      *        CTO, Awarix        *      http://www.awarix.com

Index: ch09.xml
===================================================================
--- ch09.xml	(revision 9984)
+++ ch09.xml	(working copy)
@@ -4665,6 +4665,10 @@
 @@ -0,0 +1 @@
 +Don't forget the mayo!
 
+Modified: trunk/vendors/deli/logo.jpg
+==============================================================================
+(Binary files differ)
+
 Deleted: trunk/vendors/deli/chips.txt
 ==============================================================================
 
@@ -4672,6 +4676,10 @@
 ==============================================================================
 </screen>
           
+	<para>
+	For files with non-text MIME types the actual differences
+	are not explicitly shown.
+	</para>
         </refsect1>
       </refentry>
 

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

Re: [PATCH] tiny addition to book

Posted by "Øyvind A. Holm" <su...@sunbase.org>.
On 2004-06-14 15:11-0500 Archie Cobbs wrote:

> Also, I wrote a simple script that slurps in "mime.types" files (in
> Apache httpd's format) and then scans a working hierarchy, setting
> svn:mime-type for all files with recognized suffixes.. might be useful
> for the SVN utilities project?

Indeed, that sounds like a very useful script...

Regards,
Øyvind A. Holm
---------------------
cat /dev/urandom >SCO