subversion-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexey Neyman <sti...@att.net>
Subject Re: svn generates long lists of empty diffs with --diff-cmd
Date Fri, 21 Apr 2017 04:58:32 GMT
On 04/20/2017 06:52 AM, Bert Huijben wrote:
>> -----Original Message-----
>> From: Alexey Neyman [mailto:stilor@att.net]
>> Sent: donderdag 20 april 2017 02:59
>> To: users@subversion.apache.org
>> Subject: svn generates long lists of empty diffs with --diff-cmd
>>
>> Hi,
>>
>> I noticed that SVN generates a lot of spurious diffs when using a
>> --diff-cmd option that look like this:
>>
>> Index: arch/alpha/boot/tools/objstrip.c
>> ==========================================================
>> =========
>> Index: arch/alpha/boot/Makefile
>> ==========================================================
>> =========
>>
>> Is it possible to suppress such empty diffs? This makes the tools like
>> ReviewBoard (www.reviewboard.org) examine a lot of unchanged files and
>> slows them down considerably and unnecessary.
> What argument do you pass to --diff-cmd ?
svn diff --diff-cmd=diff
> Is it possible that the files are actually different, but your diff command reports that
they are not different (e.g. after normalizing whitespace). I think this header is printed
on changed files, right before invoking the diff command.
No, plain 'svn diff' does not show any differences, not even properties. 
For example:

[aneyman@rhel-build2 src]$ svn diff $URL/SETUP.bash SETUP.bash
[aneyman@rhel-build2 src]$ svn diff --diff-cmd=diff $URL/SETUP.bash 
SETUP.bash
Index: SETUP.bash
===================================================================

Alexey.

Mime
View raw message