Mercurial > public > mercurial-scm > hg-stable
diff rust/hg-core/src/revlog/changelog.rs @ 48570:f2f57724d4eb
rhg: Add RevlogEntry::data that does delta resolution
This requires keeping a `&Revlog` reference inside the `RevlogEntry` struct.
This struct already had the appropriate lifetime parameter.
Differential Revision: https://phab.mercurial-scm.org/D11960
author | Simon Sapin <simon.sapin@octobus.net> |
---|---|
date | Tue, 21 Dec 2021 18:35:58 +0100 |
parents | 20d0d896183e |
children | fb82b5cb8301 |
line wrap: on
line diff
--- a/rust/hg-core/src/revlog/changelog.rs Tue Dec 21 15:57:30 2021 +0100 +++ b/rust/hg-core/src/revlog/changelog.rs Tue Dec 21 18:35:58 2021 +0100 @@ -32,7 +32,7 @@ &self, rev: Revision, ) -> Result<ChangelogRevisionData, RevlogError> { - let bytes = self.revlog.get_rev_data(rev)?; + let bytes = self.revlog.get_rev_data(rev)?.into_owned(); Ok(ChangelogRevisionData { bytes }) }