diff -r eaa5607132a2 -r 513d68a90398 mercurial/debugcommands.py --- a/mercurial/debugcommands.py Thu Nov 24 16:24:09 2016 -0800 +++ b/mercurial/debugcommands.py Sun Dec 18 16:16:54 2016 -0800 @@ -34,6 +34,7 @@ localrepo, lock as lockmod, pycompat, + repair, revlog, scmutil, setdiscovery, @@ -873,4 +874,4 @@ should complete almost instantaneously and the chances of a consumer being unable to access the repository should be low. """ - raise error.Abort(_('not yet implemented')) + return repair.upgraderepo(ui, repo, run=run, optimize=optimize)