# HG changeset patch # User Mads Kiilerich # Date 2014-12-14 18:27:58 # Node ID 72319005f5fb269510252bb94d233278306a54f9 # Parent 7651621507cf868170bd6f2c765958662f4a26f3 statichttprepo: update profile of __call__ in mock vfs object New code paths could fail because the old statichttprepo profile couldn't handle the usual parameters. Instead, reuse a more generic profile also used in readonlyvfs. diff --git a/mercurial/statichttprepo.py b/mercurial/statichttprepo.py --- a/mercurial/statichttprepo.py +++ b/mercurial/statichttprepo.py @@ -70,7 +70,7 @@ def build_opener(ui, authinfo): def __init__(self, base): self.base = base - def __call__(self, path, mode="r", atomictemp=None): + def __call__(self, path, mode='r', *args, **kw): if mode not in ('r', 'rb'): raise IOError('Permission denied') f = "/".join((self.base, urllib.quote(path)))