Mercurial > public > mercurial-scm > hg
comparison mercurial/localrepo.py @ 51131:498017baa34b
cleanup: remove some code scheduled to be removed after 5.9
looks like we missed this when cleaning up previous code.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 08 Nov 2023 22:08:05 +0100 |
parents | 0250e45040f1 |
children | 58d39c7865e5 |
comparison
equal
deleted
inserted
replaced
51130:b13804f7ef5f | 51131:498017baa34b |
---|---|
2919 # later call to `destroyed` will refresh them. | 2919 # later call to `destroyed` will refresh them. |
2920 return | 2920 return |
2921 | 2921 |
2922 unfi = self.unfiltered() | 2922 unfi = self.unfiltered() |
2923 | 2923 |
2924 if full: | 2924 if caches is None: |
2925 msg = ( | |
2926 "`full` argument for `repo.updatecaches` is deprecated\n" | |
2927 "(use `caches=repository.CACHE_ALL` instead)" | |
2928 ) | |
2929 self.ui.deprecwarn(msg, b"5.9") | |
2930 caches = repository.CACHES_ALL | |
2931 if full == b"post-clone": | |
2932 caches = repository.CACHES_POST_CLONE | |
2933 caches = repository.CACHES_ALL | |
2934 elif caches is None: | |
2935 caches = repository.CACHES_DEFAULT | 2925 caches = repository.CACHES_DEFAULT |
2936 | 2926 |
2937 if repository.CACHE_BRANCHMAP_SERVED in caches: | 2927 if repository.CACHE_BRANCHMAP_SERVED in caches: |
2938 if tr is None or tr.changes[b'origrepolen'] < len(self): | 2928 if tr is None or tr.changes[b'origrepolen'] < len(self): |
2939 # accessing the 'served' branchmap should refresh all the others, | 2929 # accessing the 'served' branchmap should refresh all the others, |