Mercurial > hg
changeset 42217:ca762c2bbe6b
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.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Mon, 29 Apr 2019 23:00:42 -0400 |
parents | d0e773ad9077 |
children | e64d8d73a98d |
files | mercurial/obsolete.py |
diffstat | 1 files changed, 0 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- 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: