Skip to content
Snippets Groups Projects
Commit b03527bd authored by Pierre-Yves David's avatar Pierre-Yves David :octopus:
Browse files

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
parent 221f8585
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment