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

Re: svn commit: rev 1007 - trunk/subversion/tests/clients/cmdline

From: Greg Stein <gstein_at_lyra.org>
Date: 2002-01-21 23:03:53 CET

On Mon, Jan 21, 2002 at 09:03:12PM +0000, Philip Martin wrote:
>...
> url = urlparse.urljoin(main.test_area_url, main.pristine_dir)
> print main.test_area_url
> print main.pristine_dir
> print url
>
> gives
>
> file:///home/pm/sw/subversion/obj/subversion/tests/clients/cmdline
> local_tmp/repos
> file:/home/pm/sw/subversion/obj/subversion/tests/clients/local_tmp/repos
>
> Not only has it stripped the 'cmdline' part but it has converted
> 'file:///' into 'file:/'. Subversion then fails with

Woah! Damn, that sucks.

Ignore my recommendation then! Eeesh...

  url = some_kind_of_canonicalize_func(foo + '/' + bar)

where the canon func would toss any double-slash that crept into it.

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:57 2006

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.