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

svn diff --diff-cmd=diff fails if there is a modified binary file

From: Peter Cech <cech_at_kooaba.com>
Date: Mon, 12 Oct 2009 18:21:29 +0200

Hello,

the diff command (part of coreutils IIRC) returns status 2 if there is
a difference in binary files (status 1 means a difference in text
files). Subversion apparently only accepts return status 0 and 1.
Attempt to retrieve a diff from repository

   svn diff --diff-cmd=diff -c 3916 svn://localhost/

yields an error:

   svn: 'diff' returned 2

The attached patch fixes the issue for me. Does it look like right/
complete way of fixing this issue?

Thanks!

--
Peter Cech
Software Engineer
kooaba | Technoparkstrasse 1 | 8005 Zurich | Switzerland
+41 44 633 76 65 | cech@kooaba.com | http://www.kooaba.com
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2406718
Received on 2009-10-12 18:39:21 CEST

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.