# HG changeset patch # User Boris Feld # Date 2017-10-08 19:42:32 # Node ID 3572b2031cecef142123122e26ef10d74c27f1c9 # Parent 115efdd9708811859c466c363311f93b3500a72e devel-warn: add 'warn-' to 'devel.empty-changegroup' config Rename 'devel.empty-changegroup' to 'devel.warn-empty- changegroup' in order to clarify it controls a warning message. No alias is installed since the previous configuration option was not documented. diff --git a/mercurial/changegroup.py b/mercurial/changegroup.py --- a/mercurial/changegroup.py +++ b/mercurial/changegroup.py @@ -313,7 +313,7 @@ class cg1unpacker(object): if not cgnodes: repo.ui.develwarn('applied empty changegroup', - config='empty-changegroup') + config='warn-empty-changegroup') clend = len(cl) changesets = clend - clstart repo.ui.progress(_('changesets'), None) diff --git a/mercurial/configitems.py b/mercurial/configitems.py --- a/mercurial/configitems.py +++ b/mercurial/configitems.py @@ -220,7 +220,7 @@ coreconfigitem('devel', 'deprec-warn', coreconfigitem('devel', 'disableloaddefaultcerts', default=False, ) -coreconfigitem('devel', 'empty-changegroup', +coreconfigitem('devel', 'warn-empty-changegroup', default=False, ) coreconfigitem('devel', 'legacy.exchange',