comparison mercurial/ui.py @ 49838:b7f33ed1d909

ui: drop the deprecated `getpath()` This was deprecated in 5.9.
author Matt Harbison <matt_harbison@yahoo.com>
date Tue, 03 Jan 2023 11:51:56 -0500
parents dcf983a5f906
children 444fa55f5dd2
comparison
equal deleted inserted replaced
49837:dcf983a5f906 49838:b7f33ed1d909
1100 return user 1100 return user
1101 1101
1102 @util.propertycache 1102 @util.propertycache
1103 def paths(self): 1103 def paths(self):
1104 return urlutil.paths(self) 1104 return urlutil.paths(self)
1105
1106 def getpath(self, *args, **kwargs):
1107 """see paths.getpath for details
1108
1109 This method exist as `getpath` need a ui for potential warning message.
1110 """
1111 msg = b'ui.getpath is deprecated, use `get_*` functions from urlutil'
1112 self.deprecwarn(msg, b'6.0')
1113 return self.paths.getpath(self, *args, **kwargs)
1114 1105
1115 @property 1106 @property
1116 def fout(self): 1107 def fout(self):
1117 return self._fout 1108 return self._fout
1118 1109