On Tue, Jan 27, 2015 at 12:24:47PM -0500, Lathan Bidwell wrote:
> In the Perl SWIG bindings:
> 
> $ctx->url_from_path
> 
> I believe calls the svn_uri_canonicalize in 1.8.8, but I believe that its a
> secondary effect (in 1.6, it doesn't cleanse the url)
> 
> Is there a perl SWIG binding for svn_uri_canonicalize?

I'm only familiar with the C API, not much with the bindings.

There is this: SVN::_Core::svn_uri_canonicalize

The script:

use SVN::Core;
my $uri = 
SVN::_Core::svn_uri_canonicalize("http:////svn.example.com//foo/bar///";);
print $uri."\n"

prints "http:///svn.example.com/foo/bar";
(Why 3 slashes after "http:" instead of 2? I don't know. It seems our test
suite doesn't cover this case. I'm not sure what's expected.)

I suppose _Core (with leading underscore) is a private namespace.
I don't know why this isn't part of the public SVN::Core:: namespace.
It probably should be.

Unfortunately the bindings are badly maintained and documentation is
almost non-existent :(
See http://svn.haxx.se/dev/archive-2011-02/0544.shtml
and also "Improve bindings to other programming languages"
on this page: http://subversion.apache.org/ideas.html#ideas

Reply via email to