# HG changeset patch # User Pierre-Yves David # Date 2021-04-14 23:03:12 # Node ID b03527bdac011ba47a4f5e914ecc32019d30b9b8 # Parent 221f8585e9857c7babbaddcb387526011476f311 ui: deprecated `ui.expandpath` This function return a single path, something incompatible with the coming change to `[paths]` definition to allow multiple associated urls. Now that all user got migrated, we deprecate the function. Differential Revision: https://phab.mercurial-scm.org/D10432 diff --git a/mercurial/ui.py b/mercurial/ui.py --- a/mercurial/ui.py +++ b/mercurial/ui.py @@ -1030,6 +1030,8 @@ class ui(object): 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: