Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/revlog.py @ 46725:e8c11a2c96c0
delta: add sidedata field to revision delta
When emitting revision delta, we need to also emit the sidedata information just
added in the revlogv2 format if appropriate.
Differential Revision: https://phab.mercurial-scm.org/D10027
author | Rapha?l Gom?s <rgomes@octobus.net> |
---|---|
date | Thu, 18 Feb 2021 18:18:35 +0100 |
parents | a41565bef69f |
children | 45f0d5297698 |
comparison
equal
deleted
inserted
replaced
46724:a41565bef69f | 46725:e8c11a2c96c0 |
---|---|
202 basenode = attr.ib() | 202 basenode = attr.ib() |
203 flags = attr.ib() | 203 flags = attr.ib() |
204 baserevisionsize = attr.ib() | 204 baserevisionsize = attr.ib() |
205 revision = attr.ib() | 205 revision = attr.ib() |
206 delta = attr.ib() | 206 delta = attr.ib() |
207 sidedata = attr.ib() | |
207 linknode = attr.ib(default=None) | 208 linknode = attr.ib(default=None) |
208 | 209 |
209 | 210 |
210 @interfaceutil.implementer(repository.iverifyproblem) | 211 @interfaceutil.implementer(repository.iverifyproblem) |
211 @attr.s(frozen=True) | 212 @attr.s(frozen=True) |
2585 (baserev, delta), | 2586 (baserev, delta), |
2586 ifh, | 2587 ifh, |
2587 dfh, | 2588 dfh, |
2588 alwayscache=alwayscache, | 2589 alwayscache=alwayscache, |
2589 deltacomputer=deltacomputer, | 2590 deltacomputer=deltacomputer, |
2591 sidedata=sidedata, | |
2590 ) | 2592 ) |
2591 | 2593 |
2592 if addrevisioncb: | 2594 if addrevisioncb: |
2593 addrevisioncb(self, rev) | 2595 addrevisioncb(self, rev) |
2594 empty = False | 2596 empty = False |