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

Re: [TSVN] Feature: Diff-Scripts

From: SteveKing <steveking_at_gmx.ch>
Date: 2005-07-14 20:56:44 CEST

Martin Eckardt wrote:
> I have the following Problem: I'm saving Word documents in XML Format. I
> could easily diff them with the vbs diff-scripts associated to xml. But then
> i couldn't diff other xml files in another format. I couldn't diff the word
> xml with Tmerge because the lines are too long.
> The solution:
> I could set the svn property svn:mime-typ to application/msword. So MS Word
> is started when i browse the repository through a browser.
> If we could set the diff scripts in relation to the mime-typ (too) this
> would make such things easier.
> Is anyone working on this?
> I'm willing to work on this and send a patch. What do you think?
> I think there could be other scenarios where something similar is neeeded.

So you mean instead of just using the file extension to figure out which
diff tool to use we should also take the mime type into account?
Good idea, question is though how to handle this:

- what has higher priority: extension or mime type (I guess it would be
mime type here?)
- What should the dialog look like where this can be configured?
   Maybe an additional column like this:

   ext mimetype path
   .xml application/msword vbscript
   .xml TortoiseMerge

   Or even better, if a mimetype is set, then it *only* is used if the
file to diff has that mimetype - for files without the mimetype the
default diff viewer is used.

Of course, a patch would be great!


   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.tigris.org
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Thu Jul 14 20:57:07 2005

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.