Mercurial > hg
comparison mercurial/obsolete.py @ 34863:b1e3f609bf45
config: invert evolution-related configuration aliases
We want to split the evolution-related configuration and back-out the renaming
from evolution.* to stabilization.*.
First invert the configuration and aliases, so next changesets will be
cleaner.
Differential Revision: https://phab.mercurial-scm.org/D1146
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Mon, 16 Oct 2017 17:14:32 +0200 |
parents | 96802496ecc0 |
children | fec79a3f250f |
comparison
equal
deleted
inserted
replaced
34862:d92dc725223b | 34863:b1e3f609bf45 |
---|---|
100 | 100 |
101 def isenabled(repo, option): | 101 def isenabled(repo, option): |
102 """Returns True if the given repository has the given obsolete option | 102 """Returns True if the given repository has the given obsolete option |
103 enabled. | 103 enabled. |
104 """ | 104 """ |
105 result = set(repo.ui.configlist('experimental', 'stabilization')) | 105 result = set(repo.ui.configlist('experimental', 'evolution')) |
106 if 'all' in result: | 106 if 'all' in result: |
107 return True | 107 return True |
108 | 108 |
109 # For migration purposes, temporarily return true if the config hasn't been | 109 # For migration purposes, temporarily return true if the config hasn't been |
110 # set but _enabled is true. | 110 # set but _enabled is true. |
1041 else: | 1041 else: |
1042 metadata['user'] = repo.ui.username() | 1042 metadata['user'] = repo.ui.username() |
1043 | 1043 |
1044 # Operation metadata handling | 1044 # Operation metadata handling |
1045 useoperation = repo.ui.configbool('experimental', | 1045 useoperation = repo.ui.configbool('experimental', |
1046 'stabilization.track-operation') | 1046 'evolution.track-operation') |
1047 if useoperation and operation: | 1047 if useoperation and operation: |
1048 metadata['operation'] = operation | 1048 metadata['operation'] = operation |
1049 | 1049 |
1050 # Effect flag metadata handling | 1050 # Effect flag metadata handling |
1051 saveeffectflag = repo.ui.configbool('experimental', | 1051 saveeffectflag = repo.ui.configbool('experimental', |