From patchwork Thu May 5 17:05:55 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [5, of, 7] devel: use the new 'config' argument for the update develwarn From: Pierre-Yves David X-Patchwork-Id: 14930 Message-Id: To: mercurial-devel@mercurial-scm.org Date: Thu, 05 May 2016 19:05:55 +0200 # HG changeset patch # User Pierre-Yves David # Date 1462457059 -7200 # Thu May 05 16:04:19 2016 +0200 # Node ID efee6a430f8e63e9d5d9c73cb0a013e07c2ea62d # Parent d671ff0fad1cabc27f586978593ce956d8611e78 # EXP-Topic develwarn devel: use the new 'config' argument for the update develwarn diff -r d671ff0fad1c -r efee6a430f8e mercurial/merge.py --- a/mercurial/merge.py Thu May 05 16:03:56 2016 +0200 +++ b/mercurial/merge.py Thu May 05 16:04:19 2016 +0200 @@ -1442,9 +1442,7 @@ def update(repo, node, branchmerge, forc pas = [repo[ancestor]] if node is None: - if (repo.ui.configbool('devel', 'all-warnings') - or repo.ui.configbool('devel', 'oldapi')): - repo.ui.develwarn('update with no target') + repo.ui.develwarn('update with no target', 'oldapi') rev, _mark, _act = destutil.destupdate(repo) node = repo[rev].node()