diff --git a/remotefilelog/__init__.py b/remotefilelog/__init__.py --- a/remotefilelog/__init__.py +++ b/remotefilelog/__init__.py @@ -319,7 +319,12 @@ s = shallowstore.wrapstore(s) return s - wrapfunction(store, 'store', storewrapper) + if util.safehasattr(store, 'store'): + # 4.7 + wrapfunction(store, 'store', storewrapper) + else: + # 4.8 + wrapfunction(localrepo, 'makestore', storewrapper) extensions.wrapfunction(exchange, 'pull', exchangepull)