mirror of
https://github.com/facebook/sapling.git
synced 2024-10-08 07:49:11 +03:00
configitems: update default value of 'phases.new-commit'
Now that mq is cleaned up, we can rely on the config register for the default value. We switch the default from the integer to human readable value to help with future automatic documentation that could be generated from the config register.
This commit is contained in:
parent
2bb2294b69
commit
7cddd5a606
@ -396,7 +396,7 @@ coreconfigitem('phases', 'checksubrepos',
|
||||
default='follow',
|
||||
)
|
||||
coreconfigitem('phases', 'new-commit',
|
||||
default=dynamicdefault,
|
||||
default='draft',
|
||||
)
|
||||
coreconfigitem('phases', 'publish',
|
||||
default=True,
|
||||
|
@ -619,7 +619,7 @@ def newcommitphase(ui):
|
||||
Handle all possible values for the phases.new-commit options.
|
||||
|
||||
"""
|
||||
v = ui.config('phases', 'new-commit', draft)
|
||||
v = ui.config('phases', 'new-commit')
|
||||
try:
|
||||
return phasenames.index(v)
|
||||
except ValueError:
|
||||
|
Loading…
Reference in New Issue
Block a user