diff -r 93f4e183b3f5 -r f8330a3fc39f mercurial/revlog.py --- a/mercurial/revlog.py Sun Jun 20 23:05:58 2021 +0200 +++ b/mercurial/revlog.py Mon Jun 07 11:59:27 2021 +0200 @@ -3070,11 +3070,7 @@ elif self._format_version == REVLOGV1: censor.v1_censor(self, tr, censornode, tombstone) else: - # revlog v2 - raise error.RevlogError( - _(b'cannot censor with version %d revlogs') - % self._format_version - ) + censor.v2_censor(self, tr, censornode, tombstone) def verifyintegrity(self, state): """Verifies the integrity of the revlog.