[Request] [+ ] D10871: urlutil: use the deprecation warning function on the `ui` object
mharbison72 (Matt Harbison)
phabricator at mercurial-scm.org
Sat Jun 12 04:56:57 UTC 2021
mharbison72 created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
PyCharm flagged this as not existing, and I suspect a copy/paste error.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D10871
AFFECTED FILES
mercurial/utils/urlutil.py
CHANGE DETAILS
diff --git a/mercurial/utils/urlutil.py b/mercurial/utils/urlutil.py
--- a/mercurial/utils/urlutil.py
+++ b/mercurial/utils/urlutil.py
@@ -684,7 +684,7 @@
path to a repo.
"""
msg = b'getpath is deprecated, use `get_*` functions from urlutil'
- self.deprecwarn(msg, '6.0')
+ ui.deprecwarn(msg, '6.0')
# Only fall back to default if no path was requested.
if name is None:
if not default:
To: mharbison72, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mercurial-scm.org/pipermail/mercurial-patches/attachments/20210612/d06e2bff/attachment.html>
More information about the Mercurial-patches
mailing list