mercurial/ui.py
changeset 46965 b03527bdac01
parent 46907 ffd3e823a7e5
child 47029 9ea75ea23534
child 47079 5b3513177f2b
--- a/mercurial/ui.py	Wed Apr 14 21:29:27 2021 +0200
+++ b/mercurial/ui.py	Thu Apr 15 01:03:12 2021 +0200
@@ -1030,6 +1030,8 @@
 
     def expandpath(self, loc, default=None):
         """Return repository location relative to cwd or from [paths]"""
+        msg = b'ui.expandpath is deprecated, use `get_*` functions from urlutil'
+        self.deprecwarn(msg, b'6.0')
         try:
             p = self.getpath(loc)
             if p: