summaryrefslogtreecommitdiff
path: root/subvertpy/_ra.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@jelmer.uk>2016-07-09 19:54:27 +0000
committerJelmer Vernooij <jelmer@jelmer.uk>2016-07-09 19:54:27 +0000
commit324a3063e1ac776f3e699d33010e48c8e5b9b8c4 (patch)
tree8914e8f1195cef0cd31a3e295f837d57a7b61781 /subvertpy/_ra.c
parent519ebeac5c3e2a4d1266d5b4ed65f8e22bf576d2 (diff)
Use svn_uri_canonicalize when possible.
Diffstat (limited to 'subvertpy/_ra.c')
-rw-r--r--subvertpy/_ra.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/subvertpy/_ra.c b/subvertpy/_ra.c
index da5d0b26..a2c4a70e 100644
--- a/subvertpy/_ra.c
+++ b/subvertpy/_ra.c
@@ -595,7 +595,7 @@ static PyObject *ra_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
return NULL;
}
- ret->url = svn_path_canonicalize(url, ret->pool);
+ ret->url = svn_uri_canonicalize(url, ret->pool);
if (ret->url == NULL) {
Py_DECREF(ret);
return NULL;
@@ -707,7 +707,7 @@ static PyObject *ra_reparent(PyObject *self, PyObject *args)
temp_pool = Pool(NULL);
if (temp_pool == NULL)
return NULL;
- ra->url = svn_path_canonicalize(url, ra->pool);
+ ra->url = svn_uri_canonicalize(url, ra->pool);
RUN_RA_WITH_POOL(temp_pool, ra, svn_ra_reparent(ra->ra, ra->url, temp_pool));
apr_pool_destroy(temp_pool);
Py_RETURN_NONE;