[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: Barry Scott <barry_at_barrys-emacs.org>
Date: 2005-03-22 21:45:32 CET

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.

How do I check a URL to avoid the asserts?

Can I crash the svn command with bad URL input?

Barry

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Mar 22 21:46:57 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.