[Updated] D10871: urlutil: use the deprecation warning function on the `ui` object

mharbison72 (Matt Harbison) phabricator at mercurial-scm.org
Tue Jun 15 18:56:05 UTC 2021


Closed by commit rHG65333ecc8b34: urlutil: use the deprecation warning function on the `ui` object (authored by mharbison72).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D10871?vs=28554&id=28581

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D10871/new/

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, pulkit, Alphare
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20210615/62f9f0c0/attachment-0002.html>


More information about the Mercurial-patches mailing list