changeset 23552:72319005f5fb

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.
author Mads Kiilerich <madski@unity3d.com>
date Sun, 14 Dec 2014 19:27:58 +0100
parents 7651621507cf
children 7cebb6a8c75f
files mercurial/statichttprepo.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/statichttprepo.py	Sun Dec 14 21:00:58 2014 +0100
+++ b/mercurial/statichttprepo.py	Sun Dec 14 19:27:58 2014 +0100
@@ -70,7 +70,7 @@
         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)))