Mercurial > hg
view hgext/remotefilelog/shallowstore.py @ 51922:13aa17512583
interfaces: add the missing `self` arg to the dirstate Protocol class
This clears all of the errors that PyCharm has been flagging in this file, since
the zope interface was declared here.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Thu, 26 Sep 2024 18:09:33 -0400 |
parents | f4733654f144 |
children |
line wrap: on
line source
# shallowstore.py - shallow store for interacting with shallow repos # # Copyright 2013 Facebook, Inc. # # This software may be used and distributed according to the terms of the # GNU General Public License version 2 or any later version. from __future__ import annotations def wrapstore(store): class shallowstore(store.__class__): def __contains__(self, path): # Assume it exists return True store.__class__ = shallowstore return store