[Updated] D9693: downgrade: if a compression is removed, consider that too
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Wed Jan 13 17:14:47 UTC 2021
Closed by commit rHG1fcab88ab85c: downgrade: if a compression is removed, consider that too (authored by pulkit).
This revision was automatically updated to reflect the committed changes.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D9693?vs=24772&id=24789
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D9693/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D9693
AFFECTED FILES
mercurial/upgrade_utils/actions.py
CHANGE DETAILS
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
@@ -467,6 +467,13 @@
downgrades = []
for fv in allformatvariant:
+ if fv.name == b'compression':
+ # If there is a compression change between repository
+ # and config, destination repository compression will change
+ # and current compression will be removed.
+ if fv.fromrepo(repo) != fv.fromconfig(repo):
+ downgrades.append(fv)
+ continue
# format variant exist in repo but does not exist in new repository
# config
if fv.fromrepo(repo) and not fv.fromconfig(repo):
To: pulkit, #hg-reviewers, mharbison72
Cc: mharbison72, mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20210113/f38abf4b/attachment-0002.html>
More information about the Mercurial-patches
mailing list