Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/cacheutil.py @ 51943:0f26ee69cf36
rev-branch-cache: increment the version to "v2"
We want to ensure no older clients will truncate the file under us. So we need to
change their name. We don't change the rest of the format (unfortunaly).
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 24 Sep 2024 03:16:35 +0200 |
parents | f4733654f144 |
children | 145f66ea1664 |
comparison
equal
deleted
inserted
replaced
51942:c564be351754 | 51943:0f26ee69cf36 |
---|---|
16 # ones. Therefore copy all branch caches over. | 16 # ones. Therefore copy all branch caches over. |
17 cachefiles = [b'branch2'] | 17 cachefiles = [b'branch2'] |
18 cachefiles += [b'branch2-%s' % f for f in repoview.filtertable] | 18 cachefiles += [b'branch2-%s' % f for f in repoview.filtertable] |
19 cachefiles += [b'branch3'] | 19 cachefiles += [b'branch3'] |
20 cachefiles += [b'branch3-%s' % f for f in repoview.filtertable] | 20 cachefiles += [b'branch3-%s' % f for f in repoview.filtertable] |
21 cachefiles += [b'rbc-names-v1', b'rbc-revs-v1'] | 21 cachefiles += [b'rbc-names-v2', b'rbc-revs-v2'] |
22 cachefiles += [b'tags2'] | 22 cachefiles += [b'tags2'] |
23 cachefiles += [b'tags2-%s' % f for f in repoview.filtertable] | 23 cachefiles += [b'tags2-%s' % f for f in repoview.filtertable] |
24 cachefiles += [b'hgtagsfnodes1'] | 24 cachefiles += [b'hgtagsfnodes1'] |
25 return cachefiles | 25 return cachefiles |