This is an archive of the discontinued Mercurial Phabricator instance.

context: set stack level for deprecation warning
ClosedPublic

Authored by martinvonz on Apr 13 2018, 1:07 PM.

Details

Summary

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.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.