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

Re: [PATCH] http://svn.host.tld

From: Karl Fogel <kfogel_at_newton.ch.collab.net>
Date: 2002-08-01 18:31:01 CEST

Thanks for this patch, and the other one, Alexy!

Will review & apply as soon as can, if no one else beats us to it.
Sorry about the lag time here; it's unavoidable.

-K

Alexy Khrabrov <alexy.khrabrov@setup.org> writes:
> * subversion/libsvn_subr/path.c
> (svn_path_is_url) assumed that URL has to have 3 slashes,
> which may not hold for top-level locations such as http://svn.host.tld
> which istill should be able to be typed in without the trailing slash.
>
> --
> Problem description:
>
> When hosting SVN at the top level, such as http://svn.host.tld,
> you really want to give commands such as svn ls http://svn.host.tld
> -- which previously failed immediately in the client as a URL was
> supposed to have 3 slashes. Two is enough, this validation is dumb
> anyways. The patch follows. _Together_ with my previous patches, it
> finally allows to host an SVN repository at the top level and operate
> on it with the command line svn client.
>
> Cheers,
> Alexy
>
> Index: subversion/libsvn_subr/path.c
> ===================================================================
> --- subversion/libsvn_subr/path.c
> +++ subversion/libsvn_subr/path.c Wed Jul 31 23:57:40 2002
> @@ -774,8 +774,7 @@
> /* Expecting the next two chars to be '/', and somewhere
> thereafter another '/'. */
> if ((path[j + 1] == '/')
> - && (path[j + 2] == '/')
> - && (strchr (path + j + 3, '/') != NULL))
> + && (path[j + 2] == '/'))
> return TRUE;
>
> return FALSE;
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Aug 1 18:46:02 2002

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.