diff mercurial/statichttprepo.py @ 3794:630caaf29815

use forward "/" for internal path and static http, fix issue437
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Tue, 05 Dec 2006 16:33:40 +0100
parents 8643b9f90b51
children 8f18e31c4441
line wrap: on
line diff
--- a/mercurial/statichttprepo.py	Tue Dec 05 15:21:41 2006 +0100
+++ b/mercurial/statichttprepo.py	Tue Dec 05 16:33:40 2006 +0100
@@ -25,7 +25,7 @@
     """return a function that opens files over http"""
     p = base
     def o(path, mode="r"):
-        f = os.path.join(p, urllib.quote(path))
+        f = "/".join((p, urllib.quote(path)))
         return rangereader(f)
     return o