comparison mercurial/ui.py @ 47029:9ea75ea23534

urlutil: deprecate `getpath` There as no remaining user of that function. Differential Revision: https://phab.mercurial-scm.org/D10439
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 15 Apr 2021 10:05:51 +0200
parents b03527bdac01
children b0e92313107e
comparison
equal deleted inserted replaced
47028:d69a9628eba7 47029:9ea75ea23534
1056 def getpath(self, *args, **kwargs): 1056 def getpath(self, *args, **kwargs):
1057 """see paths.getpath for details 1057 """see paths.getpath for details
1058 1058
1059 This method exist as `getpath` need a ui for potential warning message. 1059 This method exist as `getpath` need a ui for potential warning message.
1060 """ 1060 """
1061 msg = b'ui.getpath is deprecated, use `get_*` functions from urlutil'
1062 self.deprecwarn(msg, '6.0')
1061 return self.paths.getpath(self, *args, **kwargs) 1063 return self.paths.getpath(self, *args, **kwargs)
1062 1064
1063 @property 1065 @property
1064 def fout(self): 1066 def fout(self):
1065 return self._fout 1067 return self._fout