Mercurial > hg
diff mercurial/upgrade.py @ 45997:7c539f0febbe
upgrade: add an explicite --filelogs arguments
This make it possible to select no revlog for upgrade, which is useful for some
upgrade target or in some specific cases (eg: persistent-nodemap or share-safe
update).
Differential Revision: https://phab.mercurial-scm.org/D9468
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 30 Nov 2020 14:06:45 +0100 |
parents | 32dcd783a985 |
children | 705c37f22859 |
line wrap: on
line diff
--- a/mercurial/upgrade.py Mon Nov 30 19:26:54 2020 +0100 +++ b/mercurial/upgrade.py Mon Nov 30 14:06:45 2020 +0100 @@ -1152,6 +1152,7 @@ backup=True, manifest=None, changelog=None, + filelogs=None, ): """Upgrade a repository in place.""" if optimize is None: @@ -1162,7 +1163,8 @@ revlogs = set(UPGRADE_ALL_REVLOGS) specentries = ( (UPGRADE_CHANGELOG, changelog), - (UPGRADE_MANIFEST, manifest) + (UPGRADE_MANIFEST, manifest), + (UPGRADE_FILELOGS, filelogs), ) specified = [(y, x) for (y, x) in specentries if x is not None] if specified: