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
+++ b/mercurial/statichttprepo.py
@@ -25,7 +25,7 @@ def opener(base):
     """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