Show More
@@ -3838,6 +3838,7 b' def debugupdatecaches(ui, repo, *pats, *' | |||||
3838 | (b'', b'backup', True, _(b'keep the old repository content around')), |
|
3838 | (b'', b'backup', True, _(b'keep the old repository content around')), | |
3839 | (b'', b'changelog', None, _(b'select the changelog for upgrade')), |
|
3839 | (b'', b'changelog', None, _(b'select the changelog for upgrade')), | |
3840 | (b'', b'manifest', None, _(b'select the manifest for upgrade')), |
|
3840 | (b'', b'manifest', None, _(b'select the manifest for upgrade')), | |
|
3841 | (b'', b'filelogs', None, _(b'select all filelogs for upgrade')), | |||
3841 | ], |
|
3842 | ], | |
3842 | ) |
|
3843 | ) | |
3843 | def debugupgraderepo(ui, repo, run=False, optimize=None, backup=True, **opts): |
|
3844 | def debugupgraderepo(ui, repo, run=False, optimize=None, backup=True, **opts): | |
@@ -3866,6 +3867,8 b' def debugupgraderepo(ui, repo, run=False' | |||||
3866 | * `--no-manifest`: optimize all revlog but the manifest |
|
3867 | * `--no-manifest`: optimize all revlog but the manifest | |
3867 | * `--changelog`: optimize the changelog only |
|
3868 | * `--changelog`: optimize the changelog only | |
3868 | * `--no-changelog --no-manifest`: optimize filelogs only |
|
3869 | * `--no-changelog --no-manifest`: optimize filelogs only | |
|
3870 | * `--filelogs`: optimize the filelogs only | |||
|
3871 | * `--no-changelog --no-manifest --no-filelogs`: skip all filelog optimisation | |||
3869 | """ |
|
3872 | """ | |
3870 | return upgrade.upgraderepo( |
|
3873 | return upgrade.upgraderepo( | |
3871 | ui, repo, run=run, optimize=optimize, backup=backup, **opts |
|
3874 | ui, repo, run=run, optimize=optimize, backup=backup, **opts |
@@ -1152,6 +1152,7 b' def upgraderepo(' | |||||
1152 | backup=True, |
|
1152 | backup=True, | |
1153 | manifest=None, |
|
1153 | manifest=None, | |
1154 | changelog=None, |
|
1154 | changelog=None, | |
|
1155 | filelogs=None, | |||
1155 | ): |
|
1156 | ): | |
1156 | """Upgrade a repository in place.""" |
|
1157 | """Upgrade a repository in place.""" | |
1157 | if optimize is None: |
|
1158 | if optimize is None: | |
@@ -1162,7 +1163,8 b' def upgraderepo(' | |||||
1162 | revlogs = set(UPGRADE_ALL_REVLOGS) |
|
1163 | revlogs = set(UPGRADE_ALL_REVLOGS) | |
1163 | specentries = ( |
|
1164 | specentries = ( | |
1164 | (UPGRADE_CHANGELOG, changelog), |
|
1165 | (UPGRADE_CHANGELOG, changelog), | |
1165 | (UPGRADE_MANIFEST, manifest) |
|
1166 | (UPGRADE_MANIFEST, manifest), | |
|
1167 | (UPGRADE_FILELOGS, filelogs), | |||
1166 | ) |
|
1168 | ) | |
1167 | specified = [(y, x) for (y, x) in specentries if x is not None] |
|
1169 | specified = [(y, x) for (y, x) in specentries if x is not None] | |
1168 | if specified: |
|
1170 | if specified: |
@@ -328,7 +328,7 b' Show all commands + options' | |||||
328 | debuguigetpass: prompt |
|
328 | debuguigetpass: prompt | |
329 | debuguiprompt: prompt |
|
329 | debuguiprompt: prompt | |
330 | debugupdatecaches: |
|
330 | debugupdatecaches: | |
331 | debugupgraderepo: optimize, run, backup, changelog, manifest |
|
331 | debugupgraderepo: optimize, run, backup, changelog, manifest, filelogs | |
332 | debugwalk: include, exclude |
|
332 | debugwalk: include, exclude | |
333 | debugwhyunstable: |
|
333 | debugwhyunstable: | |
334 | debugwireargs: three, four, five, ssh, remotecmd, insecure |
|
334 | debugwireargs: three, four, five, ssh, remotecmd, insecure |
General Comments 0
You need to be logged in to leave comments.
Login now