diff -r 308e843f24b1 -r 0fb328bb2459 mercurial/debugcommands.py --- a/mercurial/debugcommands.py Fri Aug 06 16:17:17 2021 -0400 +++ b/mercurial/debugcommands.py Fri Aug 06 16:27:17 2021 -0400 @@ -2987,10 +2987,22 @@ dirstate.rebuild(ctx.node(), ctx.manifest(), changedfiles) -@command(b'debugrebuildfncache', [], b'') -def debugrebuildfncache(ui, repo): +@command( + b'debugrebuildfncache', + [ + ( + b'', + b'only-data', + False, + _(b'only look for wrong .d files (much faster)'), + ) + ], + b'', +) +def debugrebuildfncache(ui, repo, **opts): """rebuild the fncache file""" - repair.rebuildfncache(ui, repo) + opts = pycompat.byteskwargs(opts) + repair.rebuildfncache(ui, repo, opts.get(b"only_data")) @command(