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

Re: internal/external diff docs and usage (plus [PATCH])

From: Robert Pluim <rpluim_at_bigfoot.com>
Date: 2003-03-14 12:03:48 CET

Rafael Garcia-Suarez writes:

> If I understand correctly, the internal diff is used by default by
> "svn diff", except when one of the following is true :
>
> 1. -x is used
> 2. --diff-cmd is used
> 3. diff-cmd is set in the config file
>

I think -x is ignored silently when the (2) and (3) are not true:

$ svn diff -x -e tools/examples/svnshell.py
Index: tools/examples/svnshell.py
===================================================================
--- tools/examples/svnshell.py (revision 5250)
+++ tools/examples/svnshell.py (working copy)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python
 #
 # svnshell.py : a Python-based shell interface for cruising 'round in
 # the filesystem.

$ svn diff --diff-cmd=/usr/bin/diff -x -e tools/examples/svnshell.py
Index: tools/examples/svnshell.py
===================================================================
1c
#!/usr/bin/env python
.

> In this case, at least the following doc patch is needed.
>

Looks good to me (but then I'm suffering from sleep deprivation ;-)

> Moreover, there's a situation which can't be configured, apparently :
> when one wants to use the internal diff by default, but
> /some/unsual/path/to/diff when -x is specified. Maybe a new option in
> config/[helpers] is needed to handle this case.

Hmm, does that happen often enough to make it useful? I only run the
external diff when I need to ignore whitespace changes, which is not
that often.

Robert

-- 
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Mar 14 12:04:22 2003

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

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