##// END OF EJS Templates
updatecaches: deprecate the `full` argument...
marmoute -
r48080:8b2d09c7 default
parent child Browse files
Show More
@@ -2754,12 +2754,17 b' class localrepository(object):'
2754
2754
2755 unfi = self.unfiltered()
2755 unfi = self.unfiltered()
2756
2756
2757 if caches is None:
2758 if full:
2757 if full:
2758 msg = (
2759 "`full` argument for `repo.updatecaches` is deprecated\n"
2760 "(use `caches=repository.CACHE_ALL` instead)"
2761 )
2762 self.ui.deprecwarn(msg, "5.9")
2759 caches = repository.CACHES_ALL
2763 caches = repository.CACHES_ALL
2760 if full == b"post-clone":
2764 if full == b"post-clone":
2761 caches = repository.CACHES_POST_CLONE
2765 caches = repository.CACHES_POST_CLONE
2762 else:
2766 caches = repository.CACHES_ALL
2767 elif caches is None:
2763 caches = repository.CACHES_DEFAULT
2768 caches = repository.CACHES_DEFAULT
2764
2769
2765 if repository.CACHE_BRANCHMAP_SERVED in caches:
2770 if repository.CACHE_BRANCHMAP_SERVED in caches:
General Comments 0
You need to be logged in to leave comments. Login now