Mercurial > public > mercurial-scm > hg
comparison mercurial/context.py @ 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 | 5f8f013e7d52 |
children | 43221a57e22f |
comparison
equal
deleted
inserted
replaced
37728:564a3eec6e63 | 37729:6e137da59ad9 |
---|---|
396 # * If "x" is a string that can be any of the above, but you don't want | 396 # * If "x" is a string that can be any of the above, but you don't want |
397 # to allow general revsets (perhaps because "x" may come from a remote | 397 # to allow general revsets (perhaps because "x" may come from a remote |
398 # user and the revset may be too costly), use scmutil.revsymbol(repo, x) | 398 # user and the revset may be too costly), use scmutil.revsymbol(repo, x) |
399 # * If "x" can be a mix of the above, you'll have to figure it out | 399 # * If "x" can be a mix of the above, you'll have to figure it out |
400 # yourself | 400 # yourself |
401 repo.ui.deprecwarn("changectx.__init__ is getting more limited, see source " | 401 repo.ui.deprecwarn("changectx.__init__ is getting more limited, see " |
402 "for details", "4.6", stacklevel=4) | 402 "context.changectxdeprecwarn() for details", "4.6", |
403 stacklevel=4) | |
403 | 404 |
404 class changectx(basectx): | 405 class changectx(basectx): |
405 """A changecontext object makes access to data related to a particular | 406 """A changecontext object makes access to data related to a particular |
406 changeset convenient. It represents a read-only context already present in | 407 changeset convenient. It represents a read-only context already present in |
407 the repo.""" | 408 the repo.""" |