mercurial/ui.py
changeset 47029 9ea75ea23534
parent 46965 b03527bdac01
child 47189 b0e92313107e
--- a/mercurial/ui.py	Thu Apr 15 10:01:44 2021 +0200
+++ b/mercurial/ui.py	Thu Apr 15 10:05:51 2021 +0200
@@ -1058,6 +1058,8 @@
 
         This method exist as `getpath` need a ui for potential warning message.
         """
+        msg = b'ui.getpath is deprecated, use `get_*` functions from urlutil'
+        self.deprecwarn(msg, '6.0')
         return self.paths.getpath(self, *args, **kwargs)
 
     @property