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

Re: Setting the diff program to a specific filename

From: Rafael M. Heise <rmheise_at_gmail.com>
Date: Sun, 17 Jan 2010 16:20:55 -0800 (PST)

No, I can't change the file extension, because this is defined by
language.

At work, we're using visual dataflex, and this language define a file
named Filelist.cfg to configure the data base.

So, I can't change the file extension.

Well, my ideia is the Tortoise could verify if there is a
configuration to use a specific diff program. I don't know the code,
but I think we could define a filename as you define a extension. Just
to use another program instead TortoiseMerge. If the Tortoise check
this list to know the extension is defined in that, just to open that
or this application, maybe you could check if the filename (just the
filename, not the path) is defined. My guess is the tortoise check the
list and if found the extension in this list when you want to see the
diff, tortoise open that program instead TortoiseMerge. Maybe the same
thing could be done, but checking the filename or extension, and not
only the extension. I believe it's possible. Maybe the problem is
interate all list before call the application, but it's not a real
problema. This list is not so extension. In most cases this list up to
10 itens. And the priority should be the filename. If there is a
application defined to a filename, the Tortoise calls this
application. If there is no filename definition, the Tortoise checks
the extension. Or Tortoise uses the TortoiseMerge.

I can't see the problem, even if the extension is very common, since
tortoise check the entiry list. Because Tortoise will call the
application associated with the Filename, or the extension. If there
is no configuration to the filename or extension, just use the
TortoiseMerge.

Rafael M. Heise

On 17 jan, 10:50, Stefan Küng <tortoise..._at_gmail.com> wrote:
> On 17.01.2010 13:22, Rafael M. Heise wrote:
>
> > Unfortunately, I can't change the file extension.
>
> > It's an important file in my application, and the runtime doesn't
> > accept another filename, only Filelist.cfg
>
> > I asked that because sometimes, I need to compare the file with the
> > base file or with previous revision. But it's not a text file, so,
>
> Then why does the file have a .cfg extension if it's not text? Can't you
> use another extension?
>
> > TortoiseMerge can't just compare this file. So, I created a program to
> > convert the Filelist.cfg to text. So, I can compare the file using
> > TortoiseMerge. In this application, I convert the entiry Filelist.cfg
> > to formated text, and then I call the TortoiseMerge using the command
> > line. It's works fine. And to work with the others CFG files, I did a
> > conditional in my application to just calls the TortoiseMerge without
> > any convertion to text. There is no problem with, but if there is some
> > way to configure the diff tool to a specific file, it's could be
> > better.
>
> How would that work? Just the filename? That would then apply to all
> files that have that name - and since you've chosen a very common
> extension and the filename itself isn't that uncommon either, you could
> end up with problems for those other files.
> And specifying a path won't work either, because TSVN diffs not just
> local files but also files from repositories which use urls, not paths.
>
> Stefan
>
> --
>         ___
>    oo  // \\      "De Chelonian Mobile"
>   (_,\/ \_/ \     TortoiseSVN
>     \ \_/_\_/>    The coolest Interface to (Sub)Version Control
>     /_/   \_\    http://tortoisesvn.net
>
> ------------------------------------------------------http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMess...
>
> To unsubscribe from this discussion, e-mail: [users-unsubscr..._at_tortoisesvn.tigris.org].

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2439907

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2010-01-18 01:20:59 CET

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

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