Mercurial > public > mercurial-scm > hg-stable
diff mercurial/interfaces/repository.py @ 47237:19d4802cb304
sidedata: add a 'side-data' repository feature and use it
Most code don't really care how sidedata support is added, but it needs to know
if it is present. To achieve this. we use the `repo.features` attributes with a
new dedicated features".
Having such centralised information is more robust and will help us to remove the
sidedata requirements in a later changesets.
Differential Revision: https://phab.mercurial-scm.org/D10617
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 03 May 2021 12:29:52 +0200 |
parents | bc7d465ea11e |
children | d1589957fdcb |
line wrap: on
line diff
--- a/mercurial/interfaces/repository.py Mon May 03 12:29:41 2021 +0200 +++ b/mercurial/interfaces/repository.py Mon May 03 12:29:52 2021 +0200 @@ -21,6 +21,8 @@ REPO_FEATURE_LFS = b'lfs' # Repository supports being stream cloned. REPO_FEATURE_STREAM_CLONE = b'streamclone' +# Repository supports (at least) some sidedata to be stored +REPO_FEATURE_SIDE_DATA = b'side-data' # Files storage may lack data for all ancestors. REPO_FEATURE_SHALLOW_FILE_STORAGE = b'shallowfilestorage'