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

Re: Subversion portability

From: Karl Fogel <kfogel_at_newton.ch.collab.net>
Date: 2002-08-05 21:29:36 CEST

Bruce, I'm reviewing some pending patches -- some of the older ones
may be obsolete by now, either because already applied, or because
some other fix did the job.

Is your workaround below still applicable, or did we solve this some
other way? I didn't see anything in the logs indicating that this had
been applied, nor that the problem had been addressed...

-Karl

Bruce Atherton <bruce@callenish.com> writes:
> >Greg Stein suggested urlparse.urljoin
> >
> >http://subversion.tigris.org/servlets/ReadMsg?msgId=53677&listName=dev
> >
> >but it didn't work for me
> >
> >http://subversion.tigris.org/servlets/ReadMsg?msgId=53693&listName=dev
> >
> >since file:///xxx gets converted to file:/xxx
>
> Same for me on Windows using Activestate Python 2.1.1.
>
> This should be easy to work around, though, if in a grotesque way:
>
> # FIXME: On at least some versions of Python, a bug in urlparse.urljoin()
> # strips required slashes out of a "file:" URL. This repairs the damage.
> # Once Python is fixed to get it right, the required Python version
> # should be upped and this code should be stripped.
> import re
>
> find_bad_url = re.compile("file:/[^/]")
> if (find_bad_url.match(urlstring)) is not None:
> urlstring = urlstring[0:5] + "//" + urlstring[5:]

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Aug 5 21:45:08 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.