mercurial/upgrade.py
changeset 35302 ad2b35ebf670
parent 33438 8056481caa81
child 35335 0181f99819d2
--- a/mercurial/upgrade.py	Thu Sep 22 19:41:42 2016 +0900
+++ b/mercurial/upgrade.py	Thu Dec 07 01:51:54 2017 +0100
@@ -94,6 +94,9 @@
         'generaldelta',
     }
 
+def preservedrequirements(repo):
+    return set()
+
 deficiency = 'deficiency'
 optimisation = 'optimization'
 
@@ -679,6 +682,7 @@
     # FUTURE there is potentially a need to control the wanted requirements via
     # command arguments or via an extension hook point.
     newreqs = localrepo.newreporequirements(repo)
+    newreqs.update(preservedrequirements(repo))
 
     noremovereqs = (repo.requirements - newreqs -
                    supportremovedrequirements(repo))