# HG changeset patch # User Pierre-Yves David # Date 1495706733 -7200 # Node ID 53a67ba9fb44e63731fb182aeb74550a9618a902 # Parent 3c8a71a8df111923250d59681a0d761b824f7913 local-clone: also copy revs-branch-cache files This cache provides a large speedup for some repositories. Keeping it around is valuable. diff --git a/mercurial/hg.py b/mercurial/hg.py --- a/mercurial/hg.py +++ b/mercurial/hg.py @@ -425,7 +425,8 @@ # In local clones we're copying all nodes, not just served # ones. Therefore copy all branch caches over. cachefiles = ['branch2'] - cachefiles.extend('branch2-%s' % f for f in repoview.filtertable) + cachefiles += ['branch2-%s' % f for f in repoview.filtertable] + cachefiles += ['rbc-names-v1', 'rbc-revs-v1'] return cachefiles def clone(ui, peeropts, source, dest=None, pull=False, rev=None, diff --git a/tests/test-clone.t b/tests/test-clone.t --- a/tests/test-clone.t +++ b/tests/test-clone.t @@ -52,6 +52,8 @@ checkisexec (execbit !) checklink (symlink !) checklink-target (symlink !) + rbc-names-v1 + rbc-revs-v1 $ cat a a @@ -99,6 +101,8 @@ $ ls .hg/cache branch2-served + rbc-names-v1 + rbc-revs-v1 $ cat a 2>/dev/null || echo "a not present" a not present