From patchwork Mon Sep 9 21:23:00 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D6808: revlog: introduce a `sidedata` method From: phabricator X-Patchwork-Id: 41602 Message-Id: To: Phabricator Cc: mercurial-devel@mercurial-scm.org Date: Mon, 9 Sep 2019 21:23:00 +0000 marmoute updated this revision to Diff 16474. REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D6808?vs=16413&id=16474 CHANGES SINCE LAST ACTION https://phab.mercurial-scm.org/D6808/new/ REVISION DETAIL https://phab.mercurial-scm.org/D6808 AFFECTED FILES mercurial/revlog.py CHANGE DETAILS To: marmoute, yuja, durin42, indygreg, #hg-reviewers Cc: mercurial-devel diff --git a/mercurial/revlog.py b/mercurial/revlog.py --- a/mercurial/revlog.py +++ b/mercurial/revlog.py @@ -1616,6 +1616,16 @@ util.nouideprecwarn(msg, '5.2', stacklevel=2) return self._revisiondata(nodeorrev, _df, raw=raw) + def sidedata(self, nodeorrev, _df=None): + """a map of extra data related to the changeset but not part of the hash + + This function currently return a dictionary. However, more advanced + mapping object will likely be used in the future for a more + efficient/lazy code. + """ + # XXX will actualy return data once storage is implemented. + return {} + def _revisiondata(self, nodeorrev, _df=None, raw=False): # deal with argument type if isinstance(nodeorrev, int):