Show More
@@ -1,25 +1,25 | |||||
1 | # scmutil.py - Mercurial core utility functions |
|
1 | # scmutil.py - Mercurial core utility functions | |
2 | # |
|
2 | # | |
3 | # Copyright Olivia Mackall <olivia@selenic.com> and other |
|
3 | # Copyright Olivia Mackall <olivia@selenic.com> and other | |
4 | # |
|
4 | # | |
5 | # This software may be used and distributed according to the terms of the |
|
5 | # This software may be used and distributed according to the terms of the | |
6 | # GNU General Public License version 2 or any later version. |
|
6 | # GNU General Public License version 2 or any later version. | |
7 |
|
7 | |||
8 | from __future__ import annotations |
|
8 | from __future__ import annotations | |
9 |
|
9 | |||
10 | from . import repoview |
|
10 | from . import repoview | |
11 |
|
11 | |||
12 |
|
12 | |||
13 | def cachetocopy(srcrepo): |
|
13 | def cachetocopy(srcrepo): | |
14 | """return the list of cache file valuable to copy during a clone""" |
|
14 | """return the list of cache file valuable to copy during a clone""" | |
15 | # In local clones we're copying all nodes, not just served |
|
15 | # In local clones we're copying all nodes, not just served | |
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-exp'] | |
20 | cachefiles += [b'branch3-%s' % f for f in repoview.filtertable] |
|
20 | cachefiles += [b'branch3-exp-%s' % f for f in repoview.filtertable] | |
21 | cachefiles += [b'rbc-names-v2', b'rbc-revs-v2'] |
|
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 |
General Comments 0
You need to be logged in to leave comments.
Login now