##// END OF EJS Templates
obsolete: drop the legacy `_enabled` variable...
Matt Harbison -
r42403:ca762c2b default
parent child Browse files
Show More
@@ -93,10 +93,6 b" parsers = policy.importmod(r'parsers')"
93 _calcsize = struct.calcsize
93 _calcsize = struct.calcsize
94 propertycache = util.propertycache
94 propertycache = util.propertycache
95
95
96 # the obsolete feature is not mature enough to be enabled by default.
97 # you have to rely on third party extension extension to enable this.
98 _enabled = False
99
100 # Options for obsolescence
96 # Options for obsolescence
101 createmarkersopt = 'createmarkers'
97 createmarkersopt = 'createmarkers'
102 allowunstableopt = 'allowunstable'
98 allowunstableopt = 'allowunstable'
@@ -124,11 +120,6 b' def _getoptionvalue(repo, option):'
124 if 'all' in result:
120 if 'all' in result:
125 return True
121 return True
126
122
127 # For migration purposes, temporarily return true if the config hasn't
128 # been set but _enabled is true.
129 if len(result) == 0 and _enabled:
130 return True
131
132 # Temporary hack for next check
123 # Temporary hack for next check
133 newconfig = repo.ui.config('experimental', 'evolution.createmarkers')
124 newconfig = repo.ui.config('experimental', 'evolution.createmarkers')
134 if newconfig:
125 if newconfig:
General Comments 0
You need to be logged in to leave comments. Login now