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

Re: Using an external diff program with Subversion

From: Robert Spier <rspier_at_pobox.com>
Date: 2003-08-12 17:06:45 CEST

> I think replaceable parameters are much nicer than requiring a wrapper
> script. Its easier to set up but still allows you to use a wrapper if
> you want to do something really funky. For example, at my site I set up
> a wrapper to call my diff program of choice. A college liked my
> solution and wanted to use it but it had to be set up quite differently
> on his machine as paths, etc. were different in his environment. If I
> had been able to do it with just replaceable parameters it would have
> taken me less time to do and he would have been able to simply copy my
> cofig file and be up and running.

I don't see what the win is for replaceable parameters if you're going
to have to use a wrapper script anyway.

In my personal use case...

    most of the time I will use SVN's internal diff, or an external
    GNU diff.

    when doing comparisons, I might use xxdiff

    and maybe pdiff to print things.

simplifying that, I've got GNU diff and xxdiff, which take very
different argument flags.

How would that work in the config file?

diff-cmd[gnu] = ...
diff-cmd[xxdiff] = ...

?

That's the real catch for replaceable parameters -- because you don't
want to specify them on the command line. (Although a wrapper script
on the outside... would fix that.)

-R

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Aug 12 17:07:33 2003

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.