Patchwork [3,of,5] devel: officially deprecate update without destination

login
register
mail settings
Submitter Pierre-Yves David
Date May 11, 2016, 7:38 a.m.
Message ID <88cf0151f1d38dd4626b.1462952331@nodosa.octopoid.net>
Download mbox | patch
Permalink /patch/15013/
State Accepted
Commit 899879becd655139a06b67849064edd5d8680f38
Headers show

Comments

Pierre-Yves David - May 11, 2016, 7:38 a.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@ens-lyon.org>
# Date 1462951907 -7200
#      Wed May 11 09:31:47 2016 +0200
# Node ID 88cf0151f1d38dd4626bbf100471ade049108c14
# Parent  0dc5ffb53bf7ba1a1aacbd65cacdc4dfcbf5ee57
# EXP-Topic deprecate
devel: officially deprecate update without destination

When we introduce the develwarning, we did not had an official deprecation API
and infrastructure. We can now officially deprecate the old way with a version
deadline.

Patch

diff -r 0dc5ffb53bf7 -r 88cf0151f1d3 mercurial/merge.py
--- a/mercurial/merge.py	Wed May 11 09:34:59 2016 +0200
+++ b/mercurial/merge.py	Wed May 11 09:31:47 2016 +0200
@@ -1442,7 +1442,7 @@  def update(repo, node, branchmerge, forc
             pas = [repo[ancestor]]
 
         if node is None:
-            repo.ui.develwarn('update with no target', 'oldapi')
+            repo.ui.deprecwarn('update with no target', '3.9')
             rev, _mark, _act = destutil.destupdate(repo)
             node = repo[rev].node()