Mercurial > hg
diff contrib/showstack.py @ 37676:1764527af92e
context: set stack level for deprecation warning
This patch makes the deprecation warning print the caller of
repo.__getitem__. That's not quite correct, since there could also be
other callers of changectx.__init__, but it seems like the most
helpful stack level in practice.
Differential Revision: https://phab.mercurial-scm.org/D3307
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Fri, 13 Apr 2018 09:19:38 -0700 |
parents | c9eb92fb87b7 |
children | acf5dbe39478 |