[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: Wed, 13 May 2009 20:44:13 +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=1065&dsMessageId=2242071

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-05-13 21:45:17 CEST

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.