mirror of
https://github.com/facebook/sapling.git
synced 2024-10-08 07:49:11 +03:00
configitems: register 'merge.checkunknown' and 'merge.checkignored'
They both use the same function defining a default, so we need to update them at the same time.
This commit is contained in:
parent
2063677b32
commit
40e88b2e2b
@ -344,6 +344,12 @@ coreconfigitem('http_proxy', 'passwd',
|
||||
coreconfigitem('http_proxy', 'user',
|
||||
default=None,
|
||||
)
|
||||
coreconfigitem('merge', 'checkunknown',
|
||||
default='abort',
|
||||
)
|
||||
coreconfigitem('merge', 'checkignored',
|
||||
default='abort',
|
||||
)
|
||||
coreconfigitem('merge', 'followcopies',
|
||||
default=True,
|
||||
)
|
||||
|
@ -603,7 +603,7 @@ class mergestate(object):
|
||||
self._results[f] = 0, 'g'
|
||||
|
||||
def _getcheckunknownconfig(repo, section, name):
|
||||
config = repo.ui.config(section, name, default='abort')
|
||||
config = repo.ui.config(section, name)
|
||||
valid = ['abort', 'ignore', 'warn']
|
||||
if config not in valid:
|
||||
validstr = ', '.join(["'" + v + "'" for v in valid])
|
||||
|
Loading…
Reference in New Issue
Block a user