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

Re: What are the python bindings?

From: Robert Dailey <rcdailey_at_gmail.com>
Date: Mon, 4 Aug 2008 11:01:42 -0500

On Mon, Aug 4, 2008 at 8:14 AM, Luke Imhoff <luke_at_cray.com> wrote:

> The bindings may have changed since the last time I looked at them and
> decided on pysvn, but it used to be that the python bindings that came
> with subversion were very much C wrapped in Python. That is to say,
> even though you're in python you have to do very C like things like
> manually pass around memory pools, etc. pysvn is much more pythonic,
> but the python bindings give you fill access to the C API. I'm not sure
> if they'd actually translate the relative externals for you though since
> that depends if the translating function is accessible in the C API or
> if it's buried in the other functions (or not exported) that actually
> need the URLs translated.

Well right now pysvn doesn't seem to have a way to parse relative external
paths. Basically, I need to take a path that looks like "^/foo/bar" and
change it to absolute, like "svn://myserver/foo/bar". I'm doing this in
Python, by the way. Do the python bindings have a way of doing this? I asked
about this issue in the pysvn mailing list and they said to check out
svn_wc, but I'm not sure what that is. Help is appreciated.
Received on 2008-08-04 18:02:13 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.