D3389: context: clarify deprecation warning message

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Mon Apr 16 19:11:34 EDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG6e137da59ad9: context: clarify deprecation warning message (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3389?vs=8310&id=8332

REVISION DETAIL
  https://phab.mercurial-scm.org/D3389

AFFECTED FILES
  mercurial/context.py

CHANGE DETAILS

diff --git a/mercurial/context.py b/mercurial/context.py
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -398,8 +398,9 @@
     #    user and the revset may be too costly), use scmutil.revsymbol(repo, x)
     #  * If "x" can be a mix of the above, you'll have to figure it out
     #    yourself
-    repo.ui.deprecwarn("changectx.__init__ is getting more limited, see source "
-                       "for details", "4.6", stacklevel=4)
+    repo.ui.deprecwarn("changectx.__init__ is getting more limited, see "
+                       "context.changectxdeprecwarn() for details", "4.6",
+                       stacklevel=4)
 
 class changectx(basectx):
     """A changecontext object makes access to data related to a particular



To: martinvonz, #hg-reviewers, durin42
Cc: mercurial-devel


More information about the Mercurial-devel mailing list