Patchwork D3389: context: clarify deprecation warning message

login
register
mail settings
Submitter phabricator
Date April 16, 2018, 4:40 p.m.
Message ID <differential-rev-PHID-DREV-qvyikkcdnljv6tn3g4yh-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/31096/
State Superseded
Headers show

Comments

phabricator - April 16, 2018, 4:40 p.m.
martinvonz created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  I had one developer report that they couldn't find the message. This
  patch should make it clear where to find it.

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  mercurial/context.py

CHANGE DETAILS




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

Patch

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