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

Problem using diff via the bindings - dying with APR_PROC_SIGNAL

From: Jon Trowbridge <trow_at_ximian.com>
Date: 2002-10-22 17:35:57 CEST

I'm having a problem calling svn_client_diff via the Python bindings.

Attached is a minimal python script to diff a file. It works fine if
there are no changes to a file or if there are only property changes.
However, there is a run-time error if there are any text changes.

Everything works fine if I use 'svn diff' to diff these files.

Here is an example of the behavior: I made a trivial text change to
README and a trivial prop change to HACKING in my subversion tree:

% svn st
 M HACKING
M README
% python2 svn-diff.py COPYING
% python2 svn-diff.py HACKING

Property changes on: HACKING

___________________________________________________________________

Name: foo

   + bar

% python2 svn-diff.py README
Traceback (most recent call last):
  File "/home/trow/svn-diff.py", line 16, in ?
    "/tmp/foo.out.1", "/tmp/foo.out.2", pool)
RuntimeError: svn_io_run_cmd: error exitwhy 2 for process /usr/bin/diff
%

According to apr/include/apr_thread_proc.h, an exitwhy of 2 corresponds
to APR_PROC_SIGNAL ("process was killed by a signal"). Does anybody
have any idea what is going on here?

Thanks,
-JT

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Received on Tue Oct 22 17:36:45 2002

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.