Mercurial > public > mercurial-scm > hg-stable
diff mercurial/revlogutils/deltas.py @ 47463:f8330a3fc39f
censor: implement censoring for revlogv2
It is a bit verbose and rough, but it works. Most of that logic can be common
for `stripping`, so we can expect more refactoring of that code to accommodate
both needs. However I wanted to keep this changesets "simple enough" and before
moving forward.
We also need to properly delete the older index/data/sidedata file, but this has
implication for streaming clone and transaction, so this will come later.
Differential Revision: https://phab.mercurial-scm.org/D10869
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 07 Jun 2021 11:59:27 +0200 |
parents | 93f4e183b3f5 |
children | c514936d92b4 |
line wrap: on
line diff
--- a/mercurial/revlogutils/deltas.py Sun Jun 20 23:05:58 2021 +0200 +++ b/mercurial/revlogutils/deltas.py Mon Jun 07 11:59:27 2021 +0200 @@ -1070,7 +1070,7 @@ context. """ if target_rev is None: - curr = len(self.revlog) + target_rev = len(self.revlog) if not revinfo.textlen: return self._fullsnapshotinfo(fh, revinfo, target_rev)