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

Re: svn commit: r10133 - in trunk/subversion: include libsvn_subr tests/clients/cmdline tests/libsvn_subr

From: Klaus Rennecke <kre_at_tigris.org>
Date: 2004-07-04 16:29:18 CEST

Hmm, I think this will backtrack over the host name in URLs. Interesting
feature, but intended? And I think absolute_path will be wrong for full
URLs except file:///

If there is a schema part, skip initial segment excluding the following
slash? Something like while(*src && *src != '/') { *(dst++) = *(src++);
} perhaps.

Then the following slash which will be swallowed by the next if{} and
trigger absolute_path. And avoid backtracking over the host name.

Host names are case-insensitive by the way, that might be another
transformation if strict equality is a goal. But this may clash with the
callers that use this function for plain file names.

/Klaus

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Jul 4 16:30:26 2004

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.