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

svn_client_diff messed up output with external diff command problem

From: Barry Scott <barry_at_barrys-emacs.org>
Date: Sat, 9 May 2009 09:28:14 +0100

I have a pysvn user that found the output of diff messed up compared
to the
svn command line diff.

He gets output like this:

Index: some/file
==================================OUTPUT
FROM
DIFF====================================

instead of:

Index: some/file
======================================================================

OUTPUT
FROM
DIFF

He tracked this down to the way pysvn calls svn_client_diff. pysvn uses
svn_io_open_unique_file3 to create the output and error file objects.

It seems likely that because these are APR_BUFFERED the output of svn
and the external diff command do not get merged correctly.

Do you consider this a bug in SVN or in how pysvn calls SVN?

Barry

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2138095
Received on 2009-05-09 10:28:41 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.