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

Re: svn commit: r28226 - in trunk/subversion/bindings/swig: . python/libsvn_swig_py python/svn python/tests

From: David James <james_at_cs.toronto.edu>
Date: 2007-12-04 07:55:36 CET

On Dec 3, 2007 6:11 PM, Eric Gillespie <epg@google.com> wrote:
>
> epg@tigris.org writes:
>
> > Author: epg
> > Date: Mon Dec 3 18:06:06 2007
> > New Revision: 28226
> >
> > Log:
> > Replace bare SubversionException implemented in C with
> > SubversionException written in Python, exposing the full chain of
> > svn_error_t objects.
> >
> > * subversion/bindings/swig/python/svn/core.py
> > (SubversionException): Add Exception class with apr_err, message,
> > child, file, and line attributes, plus args attribute that is
> > compatible with pre-1.5 bindings.
> >
> > * subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.c
> > (SubversionException, svn_swig_py_exception_type,
> > svn_swig_py_register_exception): Remove.
> > (svn_swig_py_svn_exception): Turn svn_error_t chain into
> > svn.core.SubversionException chain and raise that.
> >
> > * subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.h
> > (svn_swig_py_exception_type, svn_swig_py_register_exception): Remove.
> >
> > * subversion/bindings/swig/core.i
> > Drop reference to svn_swig_py_exception_type.
> > Don't register SubversionException here.
> >
> > * subversion/bindings/swig/python/tests/client.py
> > * subversion/bindings/swig/python/tests/mergeinfo.py
> > * subversion/bindings/swig/python/tests/repository.py
> > * subversion/bindings/swig/python/tests/wc.py
> > Import SubversionException from svn.core instead of libsvn.core.
>
> Do we need backward compatibility for this? I think that, even
> though the Python binding has no documentation, libsvn is not
> part of the "documented" interface, but only an implementation
> detail. No one should be importing anything from libsvn. But,
> if we had to, compat is as simple as:
> [...]

Hi Eric,

We don't explicitly offer compatibility for
libsvn.SubversionException, but I think it's worth committing your
patch because it'll probably save some people a few headaches. If
you're going to fix libsvn.core.SubversionException, you might as well
fix libsvn._core.SubversionException as well since there are scripts
which use that too (look at
contrib/client-side/svn_export_empty_files.py for an example).

I don't think that the use of libsvn._core was an accident -- IIRC, I
believe that it was used as a workaround for a bug in SVN.

Cheers,

David

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Dec 4 07:59:45 2007

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.