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