[PATCH] Fix for Issue1260
Adrian Buehlmann
adrian at cadifra.com
Fri Aug 15 11:47:45 CDT 2008
On 15.08.2008 17:51, Shun-ichi GOTO wrote:
> 2008/8/15 Adrian Buehlmann <adrian at cadifra.com>:
>> --- a/mercurial/statichttprepo.py
>> +++ b/mercurial/statichttprepo.py
>> @@ -24,7 +24,7 @@
>>
>> def opener(base):
>> """return a function that opens files over http"""
>> - p = base
>> + p = base.replace('\\', '/')
>> def o(path, mode="r"):
>> f = "/".join((p, urllib.quote(path)))
>> return rangereader(f)
>
> Please use util.pconvert(base) or util.normpath(base) instead of using
> string.replace() directly.
> This is due to MBCS issue (regarding to hgext/win32mbcs.py).
>
Are you sure that you want to tweak the paths inside .hg/store
with the win32mbcs extension?
This opener is only used to access store files using
static-http...
For example "hg clone static-http://example.com/repo1 repo1"
(This example needs a browseable directory at http://example.com/repo1)
More information about the Mercurial-devel
mailing list