Philip Martin wrote:
>
> cmpilato@collab.net writes:
>
> > Blair Zajac <blair@orcaware.com> writes:
> >
> > > Just to be beat this into the ground, when diff returns 2, svnlook
> > > quits immediately and doesn't generate the entire diff for the
> > > revision, hence our commit email will be lacking info.
> >
> > I don't understand. Every time I've ever run diff on a binary file,
> > it either prints nothing (no diff) or "Binary files foo and bar
> > differ". Is this not true for you?
> >
> > Oh, I see.
> >
> > % cd /usr/share/pixmaps
> > % diff tycoon.png ximian_button_pill.png
> > Binary files tycoon.png and ximian_button_pill.png differ
> > % echo $?
> > 2
>
> Good old diff!
>
> $ diff -v
> diff - GNU diffutils version 2.7
> $ diff /bin/rm /bin/mv
> Binary files /bin/rm and /bin/mv differ
> $ echo $?
> 1
> $ diff /bin/rm /bin/rm
> $ echo $?
> 0
Diff 2.8.1 does it differently.
% diff -v
diff (GNU diffutils) 2.8.1
% diff /bin/rm /bin/mv
Binary files /bin/rm and /bin/mv differ
% echo $?
2
% diff /bin/rm /bin/rm
% echo $?
0
Blair
--
Blair Zajac <blair@orcaware.com>
Web and OS performance plots - http://www.orcaware.com/orca/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Nov 9 19:32:45 2002