changeset 47410:65333ecc8b34

urlutil: use the deprecation warning function on the `ui` object PyCharm flagged this as not existing, and I suspect a copy/paste error. Differential Revision: https://phab.mercurial-scm.org/D10871
author Matt Harbison <matt_harbison@yahoo.com>
date Fri, 11 Jun 2021 23:50:29 -0400
parents 0ef8231e413f
children 515014d72aa2
files mercurial/utils/urlutil.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/utils/urlutil.py	Wed Jun 02 11:25:18 2021 +0200
+++ b/mercurial/utils/urlutil.py	Fri Jun 11 23:50:29 2021 -0400
@@ -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: