Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/cacheutil.py @ 51562:fe8347b984f3
branchcache-v3: introduce a v3 format
For now the format is the very same, however we will start changing it in
future changesets.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 26 Feb 2024 14:20:36 +0100 |
parents | 6000f5b25c9b |
children | f4733654f144 |
comparison
equal
deleted
inserted
replaced
51561:ec640dc9cebd | 51562:fe8347b984f3 |
---|---|
12 """return the list of cache file valuable to copy during a clone""" | 12 """return the list of cache file valuable to copy during a clone""" |
13 # In local clones we're copying all nodes, not just served | 13 # In local clones we're copying all nodes, not just served |
14 # ones. Therefore copy all branch caches over. | 14 # ones. Therefore copy all branch caches over. |
15 cachefiles = [b'branch2'] | 15 cachefiles = [b'branch2'] |
16 cachefiles += [b'branch2-%s' % f for f in repoview.filtertable] | 16 cachefiles += [b'branch2-%s' % f for f in repoview.filtertable] |
17 cachefiles += [b'branch3'] | |
18 cachefiles += [b'branch3-%s' % f for f in repoview.filtertable] | |
17 cachefiles += [b'rbc-names-v1', b'rbc-revs-v1'] | 19 cachefiles += [b'rbc-names-v1', b'rbc-revs-v1'] |
18 cachefiles += [b'tags2'] | 20 cachefiles += [b'tags2'] |
19 cachefiles += [b'tags2-%s' % f for f in repoview.filtertable] | 21 cachefiles += [b'tags2-%s' % f for f in repoview.filtertable] |
20 cachefiles += [b'hgtagsfnodes1'] | 22 cachefiles += [b'hgtagsfnodes1'] |
21 return cachefiles | 23 return cachefiles |