debugcommands: introduce a debug command to repair repos affected by issue6528
This command is quite basic and slow, it will loop over the entirety of the filelogs in the repository and check each revision for corruption, then fixes the affected filelogs. It takes under 25 minutes for Mozilla-Central on my not-top-of-the-line laptop, using the `--to-report` and `--from-report` options will make this pretty tolerable to use, I think. This change also introduces a test for the fix. Differential Revision: https://phab.mercurial-scm.org/D11239
Showing
- mercurial/debugcommands.py 59 additions, 0 deletionsmercurial/debugcommands.py
- mercurial/revlogutils/rewrite.py 222 additions, 0 deletionsmercurial/revlogutils/rewrite.py
- tests/bundles/issue6528.tar 0 additions, 0 deletionstests/bundles/issue6528.tar
- tests/test-completion.t 2 additions, 0 deletionstests/test-completion.t
- tests/test-help.t 3 additions, 0 deletionstests/test-help.t
- tests/test-issue6528.t 248 additions, 2 deletionstests/test-issue6528.t
Loading
Please register or sign in to comment