Mercurial > hg
changeset 42721:161d39e9be4b
rawdata: add the method to bundlerevlog
The bundlerepo logic has its own `revision` method on its own `revlog` object.
We need to "implement" `rawdata` there too.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 07 Aug 2019 22:00:57 +0200 |
parents | bf1e8d2ab900 |
children | c9f3f4c8999a |
files | mercurial/bundlerepo.py |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/bundlerepo.py Wed Aug 07 21:59:20 2019 +0200 +++ b/mercurial/bundlerepo.py Wed Aug 07 22:00:57 2019 +0200 @@ -146,6 +146,9 @@ self._revisioncache = (node, rev, rawtext) return text + def rawdata(self, nodeorrev, _df=None): + return self.revision(nodeorrev, _df=_df, raw=True) + def baserevision(self, nodeorrev): # Revlog subclasses may override 'revision' method to modify format of # content retrieved from revlog. To use bundlerevlog with such class one