Mercurial > hg
changeset 46965:b03527bdac01
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
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Thu, 15 Apr 2021 01:03:12 +0200 |
parents | 221f8585e985 |
children | 1e2f2c782928 |
files | mercurial/ui.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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: