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

Re: Patch: add svn_client_get_repos_path

From: C. Michael Pilato <cmpilato_at_collab.net>
Date: 2005-03-22 21:56:57 CET

Barry Scott <barry@barrys-emacs.org> writes:

> On Mar 21, 2005, at 14:22, C. Michael Pilato wrote:
>
> > Barry Scott <barry@barrys-emacs.org> writes:
> >
> >> Here is code that could be added to subversion/libsvn_client/ra.c
> >> to add
> >> a new svn_client_get_repos_path function. Its based on the code of
> >> svn_client_uuid_from_url that is the same pattern.
> >>
> >> How can the code check the url so that that I can prevent this
> >> assert?
> >
> > The code doesn't need to check the URL -- the assert is doing so for
> > you. Subversion APIs require canonicalized paths as input, so you
> > need to fix the caller.
>
> So I take some input from a user, say on the command line and
> the assert is the friendly message... I don't think so.

So, I should have been more clear. Subversion APIs require
canonicalized paths as input, with the exception of the APIs we
provide for canonicalizing paths.

So you take input from a user, call the same canonicalization routines
that every other Subversion binary calls, and you pass the results to
this function.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Mar 22 22:01:30 2005

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.