# HG changeset patch # User Matt Harbison # Date 2023-01-03 16:48:21 # Node ID dcf983a5f90640b65e829d9335730c37cba87aa6 # Parent 9854a9adc4662c5c2e4afdc31dc1ebad11ca0b27 ui: drop the deprecated `expandpath()` This was deprecated since 5.8. diff --git a/mercurial/ui.py b/mercurial/ui.py --- a/mercurial/ui.py +++ b/mercurial/ui.py @@ -1099,27 +1099,6 @@ class ui: user = stringutil.shortuser(user) return user - 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: - return p.rawloc - except error.RepoError: - pass - - if default: - try: - p = self.getpath(default) - if p: - return p.rawloc - except error.RepoError: - pass - - return loc - @util.propertycache def paths(self): return urlutil.paths(self)