This is an archive of the discontinued Mercurial Phabricator instance.

util: set correct stack level on deprecation warnings
ClosedPublic

Authored by martinvonz on Apr 13 2018, 5:29 PM.

Details

Summary

Without this patch, you'll get something like this:

<path>/mercurial/util.py:3784: DeprecationWarning: 'util.hgexecutable'
    is deprecated, use 'utils.procutil.hgexecutable'

(but on one line)

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.

Event Timeline

martinvonz created this revision.Apr 13 2018, 5:29 PM
This revision was automatically updated to reflect the committed changes.