"C. Michael Pilato" <cmpil...@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