equal
deleted
inserted
replaced
|
1 # scmutil.py - Mercurial core utility functions |
|
2 # |
|
3 # Copyright Matt Mackall <mpm@selenic.com> and other |
|
4 # |
|
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. |
|
7 from __future__ import absolute_import |
|
8 |
|
9 from . import repoview |
|
10 |
|
11 def cachetocopy(srcrepo): |
|
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 |
|
14 # ones. Therefore copy all branch caches over. |
|
15 cachefiles = ['branch2'] |
|
16 cachefiles += ['branch2-%s' % f for f in repoview.filtertable] |
|
17 cachefiles += ['rbc-names-v1', 'rbc-revs-v1'] |
|
18 cachefiles += ['tags2'] |
|
19 cachefiles += ['tags2-%s' % f for f in repoview.filtertable] |
|
20 cachefiles += ['hgtagsfnodes1'] |
|
21 return cachefiles |