Show More
@@ -2754,13 +2754,18 b' class localrepository(object):' | |||
|
2754 | 2754 | |
|
2755 | 2755 | unfi = self.unfiltered() |
|
2756 | 2756 | |
|
2757 | if caches is None: | |
|
2758 |
|
|
|
2759 | caches = repository.CACHES_ALL | |
|
2760 | if full == b"post-clone": | |
|
2761 | caches = repository.CACHES_POST_CLONE | |
|
2762 | else: | |
|
2763 |
|
|
|
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") | |
|
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 | 2770 | if repository.CACHE_BRANCHMAP_SERVED in caches: |
|
2766 | 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