##// END OF EJS Templates
py3: byteify the version string passed to the deprecation warning method...
Matt Harbison -
r48205:c887bab2 default
parent child Browse files
Show More
@@ -2759,7 +2759,7 b' class localrepository(object):'
2759 "`full` argument for `repo.updatecaches` is deprecated\n"
2759 "`full` argument for `repo.updatecaches` is deprecated\n"
2760 "(use `caches=repository.CACHE_ALL` instead)"
2760 "(use `caches=repository.CACHE_ALL` instead)"
2761 )
2761 )
2762 self.ui.deprecwarn(msg, "5.9")
2762 self.ui.deprecwarn(msg, b"5.9")
2763 caches = repository.CACHES_ALL
2763 caches = repository.CACHES_ALL
2764 if full == b"post-clone":
2764 if full == b"post-clone":
2765 caches = repository.CACHES_POST_CLONE
2765 caches = repository.CACHES_POST_CLONE
@@ -1065,7 +1065,7 b' class ui(object):'
1065 This method exist as `getpath` need a ui for potential warning message.
1065 This method exist as `getpath` need a ui for potential warning message.
1066 """
1066 """
1067 msg = b'ui.getpath is deprecated, use `get_*` functions from urlutil'
1067 msg = b'ui.getpath is deprecated, use `get_*` functions from urlutil'
1068 self.deprecwarn(msg, '6.0')
1068 self.deprecwarn(msg, b'6.0')
1069 return self.paths.getpath(self, *args, **kwargs)
1069 return self.paths.getpath(self, *args, **kwargs)
1070
1070
1071 @property
1071 @property
@@ -688,7 +688,7 b' class paths(dict):'
688 path to a repo.
688 path to a repo.
689 """
689 """
690 msg = b'getpath is deprecated, use `get_*` functions from urlutil'
690 msg = b'getpath is deprecated, use `get_*` functions from urlutil'
691 ui.deprecwarn(msg, '6.0')
691 ui.deprecwarn(msg, b'6.0')
692 # Only fall back to default if no path was requested.
692 # Only fall back to default if no path was requested.
693 if name is None:
693 if name is None:
694 if not default:
694 if not default:
General Comments 0
You need to be logged in to leave comments. Login now