changeset 34734:3572b2031cec

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.
author Boris Feld <boris.feld@octobus.net>
date Sun, 08 Oct 2017 21:42:32 +0200
parents 115efdd97088
children 330d0b582ab3
files mercurial/changegroup.py mercurial/configitems.py
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/changegroup.py	Sun Oct 15 00:05:00 2017 -0400
+++ b/mercurial/changegroup.py	Sun Oct 08 21:42:32 2017 +0200
@@ -313,7 +313,7 @@
 
             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)
--- a/mercurial/configitems.py	Sun Oct 15 00:05:00 2017 -0400
+++ b/mercurial/configitems.py	Sun Oct 08 21:42:32 2017 +0200
@@ -220,7 +220,7 @@
 coreconfigitem('devel', 'disableloaddefaultcerts',
     default=False,
 )
-coreconfigitem('devel', 'empty-changegroup',
+coreconfigitem('devel', 'warn-empty-changegroup',
     default=False,
 )
 coreconfigitem('devel', 'legacy.exchange',