Submitter | phabricator |
---|---|
Date | Dec. 16, 2020, 10:15 a.m. |
Message ID | <differential-rev-PHID-DREV-bfzgn3hp7gdxyx7lwcqs-req@mercurial-scm.org> |
Download | mbox | patch |
Permalink | /patch/47914/ |
State | Superseded |
Headers | show |
Comments
Patch
diff --git a/mercurial/upgrade_utils/actions.py b/mercurial/upgrade_utils/actions.py --- a/mercurial/upgrade_utils/actions.py +++ b/mercurial/upgrade_utils/actions.py @@ -428,6 +428,21 @@ return upgrades +def find_format_downgrades(repo): + """returns a list of format downgrades which will be performed on the repo + because of disabled config option for them""" + + downgrades = [] + + for fv in allformatvariant: + # format variant exist in repo but does not exist in new repository + # config + if fv.fromrepo(repo) and not fv.fromconfig(repo): + downgrades.append(fv) + + return downgrades + + ALL_OPTIMISATIONS = []