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

Re: External diff based on mime-type

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Fri, 19 Apr 2013 15:29:48 +0100

"C. Michael Pilato" <cmpilato_at_collab.net> writes:

> On 04/18/2013 09:59 PM, Watson, Paul wrote:
>> We have a diff utility designed for a proprietary file format. I would
>> like for this "theappdiff" utility to be used if the file's svn:mine-type
>> prop is application/the-app.
>>
>> Is it possible for svn to invoke an external diff based on mime-type?
>
> The Subversion command-line utility can't do this.

It can't do it directly but it can invoke a script and the script can do
anything. Parse the label to get the working copy path, run a propget
to get svn:mime-type and then invoke GNU diff or special diff as
appropriate. Or on Linux it could run 'file --mimetype' on the given
file and use that instead of svn:mime-type.

-- 
Certified & Supported Apache Subversion Downloads:
http://www.wandisco.com/subversion/download
Received on 2013-04-19 16:30:44 CEST

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.