devel: officially deprecate update without destination
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Wed, 11 May 2016 09:31:47 +0200
changeset 29148 899879becd65
parent 29147 ff07da10de4c
child 29149 2e40fada340b
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.
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 @@
             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()