Mercurial > public > mercurial-scm > hg-stable
diff mercurial/utils/storageutil.py @ 47100:8bd769b5c941
sidedata: move documentation about sidedata helpers to sidedata module
Differential Revision: https://phab.mercurial-scm.org/D10361
author | Rapha?l Gom?s <rgomes@octobus.net> |
---|---|
date | Mon, 19 Apr 2021 11:22:24 +0200 |
parents | 3aab2330b7d3 |
children | 24ea3ef35238 |
line wrap: on
line diff
--- a/mercurial/utils/storageutil.py Mon Apr 19 11:22:24 2021 +0200 +++ b/mercurial/utils/storageutil.py Mon Apr 19 11:22:24 2021 +0200 @@ -364,24 +364,7 @@ ``assumehaveparentrevisions`` ``sidedata_helpers`` (optional) If not None, means that sidedata should be included. - A dictionary of revlog type to tuples of `(repo, computers, removers)`: - * `repo` is used as an argument for computers - * `computers` is a list of `(category, (keys, computer, flags)` that - compute the missing sidedata categories that were asked: - * `category` is the sidedata category - * `keys` are the sidedata keys to be affected - * `flags` is a bitmask (an integer) of flags to remove when - removing the category. - * `computer` is the function `(repo, store, rev, sidedata)` that - returns a tuple of - `(new sidedata dict, (flags to add, flags to remove))`. - For example, it will return `({}, (0, 1 << 15))` to return no - sidedata, with no flags to add and one flag to remove. - * `removers` will remove the keys corresponding to the categories - that are present, but not needed. - If both `computers` and `removers` are empty, sidedata are simply not - transformed. - Revlog types are `changelog`, `manifest` or `filelog`. + See `revlogutil.sidedata.get_sidedata_helpers`. """ fnode = store.node