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

Re: svn diff -x -b doesn't work

From: Ryan Schmidt <subversion-2006d_at_ryandesign.com>
Date: 2006-11-30 00:01:40 CET

On Nov 29, 2006, at 13:02, Glen Herrmannsfeldt wrote:

> If I do:
>
> svn diff -x -b
>
> or
>
> svn diff -x "-b"
>
> I get: svn: '-b' is not supported
>
> It looks like svn is looking at the -b, instead of passing it to diff.
>
> svn, version 1.2.3 (r15833)
> compiled Aug 26 2005, 03:42:45

I get no error message with Subversion 1.4.2, but "svn diff -x -b"
does not ignore whitespace, if that's what you wanted. If so, realize
that you need to specify the name of the external diff command,
otherwise Subversion uses its internal diff implementation, which
presumably does not support -b. Do this:

svn diff --diff-cmd diff -x -bu

That does invoke the external diff command with whatever parameters
you specify.

Side note: On my system (Mac OS X) diff -b seems still not to ignore
whitespace differences, which is odd since the manpage says it
should. But... that's my problem. Hopefully it works for you.

-- 
To reply to the mailing list, use your mailer's Reply To All function
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Nov 30 00:02:28 2006

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.