diff mercurial/hg.py @ 34805:c4a0480d1951

config: simplify aliasing commands.update.check experimental.updatecheck was renamed into commands.update.check, use the config system to provides the fallback on the old config name instead of adding more code. Differential Revision: https://phab.mercurial-scm.org/D1117
author Boris Feld <boris.feld@octobus.net>
date Mon, 16 Oct 2017 18:58:16 +0200
parents 23ed47a895d5
children 68e0bcb90357
line wrap: on
line diff
--- a/mercurial/hg.py	Wed Oct 04 18:51:21 2017 -0700
+++ b/mercurial/hg.py	Mon Oct 16 18:58:16 2017 +0200
@@ -758,9 +758,6 @@
     """
     if updatecheck is None:
         updatecheck = ui.config('commands', 'update.check')
-        if updatecheck is None:
-            # pre-4.4 compat on the old spelling of this config item
-            updatecheck = ui.config('experimental', 'updatecheck')
         if updatecheck not in ('abort', 'none', 'linear', 'noconflict'):
             # If not configured, or invalid value configured
             updatecheck = 'linear'