diff --git a/mercurial/ui.py b/mercurial/ui.py --- a/mercurial/ui.py +++ b/mercurial/ui.py @@ -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, '6.0') try: p = self.getpath(loc) if p: