obsolete: drop the legacy `_enabled` variable
authorMatt Harbison <matt_harbison@yahoo.com>
Mon, 29 Apr 2019 23:00:42 -0400
changeset 42217 ca762c2bbe6b
parent 42216 d0e773ad9077
child 42220 e64d8d73a98d
obsolete: drop the legacy `_enabled` variable Evolve 8.5.0 stopped setting this, and it would have been easier to figure out why TortoiseHg stopped allowing amends if it would have crashed on the missing variable.
mercurial/obsolete.py
--- a/mercurial/obsolete.py	Sat Apr 27 14:43:43 2019 +0300
+++ b/mercurial/obsolete.py	Mon Apr 29 23:00:42 2019 -0400
@@ -93,10 +93,6 @@
 _calcsize = struct.calcsize
 propertycache = util.propertycache
 
-# the obsolete feature is not mature enough to be enabled by default.
-# you have to rely on third party extension extension to enable this.
-_enabled = False
-
 # Options for obsolescence
 createmarkersopt = 'createmarkers'
 allowunstableopt = 'allowunstable'
@@ -124,11 +120,6 @@
         if 'all' in result:
             return True
 
-        # For migration purposes, temporarily return true if the config hasn't
-        # been set but _enabled is true.
-        if len(result) == 0 and _enabled:
-            return True
-
         # Temporary hack for next check
         newconfig = repo.ui.config('experimental', 'evolution.createmarkers')
         if newconfig: