Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/branchmap.py @ 41729:a87ca1d7e61d
branchmap: improve doc about BranchMapCache class
It was confusing that we are having two different branchcache and
BranchMapCache classes. The doc in BranchMapCache class was not much helpful
to understand the difference. This patch improves the doc there.
Differential Revision: https://phab.mercurial-scm.org/D5933
author | Pulkit Goyal <pulkit@yandex-team.ru> |
---|---|
date | Mon, 11 Feb 2019 16:34:48 +0300 |
parents | 9d0d8793e847 |
children | aaad36b88298 |
comparison
equal
deleted
inserted
replaced
41728:9060af281be7 | 41729:a87ca1d7e61d |
---|---|
43 'served': 'immutable', | 43 'served': 'immutable', |
44 'immutable': 'base'} | 44 'immutable': 'base'} |
45 | 45 |
46 | 46 |
47 class BranchMapCache(object): | 47 class BranchMapCache(object): |
48 """Cache mapping""" | 48 """mapping of filtered views of repo with their branchcache""" |
49 def __init__(self): | 49 def __init__(self): |
50 self._per_filter = {} | 50 self._per_filter = {} |
51 | 51 |
52 def __getitem__(self, repo): | 52 def __getitem__(self, repo): |
53 self.updatecache(repo) | 53 self.updatecache(repo) |