From patchwork Wed Dec 16 10:15:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D9617: debugupgraderepo: minor documentation fix From: phabricator X-Patchwork-Id: 47917 Message-Id: To: Phabricator Cc: mercurial-devel@mercurial-scm.org Date: Wed, 16 Dec 2020 10:15:33 +0000 pulkit created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY When we specify `--no-changelog --no-manifest --no-filelog` we skip all revlog optimization instead of all filelog optimization. Also while I was here, for consistency, I did `optimisation` -> `optimization` to make it consistent with rest of occurrences. Note: I am not native speaker and I only changed it because of consistency. I don't know which one is correct. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D9617 AFFECTED FILES mercurial/debugcommands.py CHANGE DETAILS To: pulkit, #hg-reviewers Cc: mercurial-patches, mercurial-devel diff --git a/mercurial/debugcommands.py b/mercurial/debugcommands.py --- a/mercurial/debugcommands.py +++ b/mercurial/debugcommands.py @@ -3922,7 +3922,7 @@ * `--changelog`: optimize the changelog only * `--no-changelog --no-manifest`: optimize filelogs only * `--filelogs`: optimize the filelogs only - * `--no-changelog --no-manifest --no-filelogs`: skip all filelog optimisation + * `--no-changelog --no-manifest --no-filelogs`: skip all revlog optimizations """ return upgrade.upgraderepo( ui, repo, run=run, optimize=set(optimize), backup=backup, **opts