changeset 37729:6e137da59ad9

context: clarify deprecation warning message I had one developer report that they couldn't find the message. This patch should make it clear where to find it. Differential Revision: https://phab.mercurial-scm.org/D3389
author Martin von Zweigbergk <martinvonz@google.com>
date Mon, 16 Apr 2018 09:39:40 -0700
parents 564a3eec6e63
children 8d730f96e792
files mercurial/context.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/context.py	Sun Apr 15 10:37:29 2018 -0700
+++ b/mercurial/context.py	Mon Apr 16 09:39:40 2018 -0700
@@ -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