##// END OF EJS Templates
urlutil: deprecate `getpath`...
marmoute -
r47803:9ea75ea2 default
parent child Browse files
Show More
@@ -1058,6 +1058,8 b' class ui(object):'
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
@@ -610,6 +610,8 b' class paths(dict):'
610 Returns None if ``name`` is not a registered path, a URI, or a local
610 Returns None if ``name`` is not a registered path, a URI, or a local
611 path to a repo.
611 path to a repo.
612 """
612 """
613 msg = b'getpath is deprecated, use `get_*` functions from urlutil'
614 self.deprecwarn(msg, '6.0')
613 # Only fall back to default if no path was requested.
615 # Only fall back to default if no path was requested.
614 if name is None:
616 if name is None:
615 if not default:
617 if not default:
General Comments 0
You need to be logged in to leave comments. Login now