Mercurial > hg
view hgext/remotefilelog/shallowstore.py @ 51906:0f26ee69cf36
rev-branch-cache: increment the version to "v2"
We want to ensure no older clients will truncate the file under us. So we need to
change their name. We don't change the rest of the format (unfortunaly).
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 24 Sep 2024 03:16:35 +0200 |
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