Mercurial > hg
comparison tests/test-remotefilelog-sparse.t @ 42223:d69bc8ffbe6f
copies: inline _computenonoverlap() in mergecopies()
We now call pathcopies() from the base to each of the commits, and
that calls _computeforwardmissing(), which does file prefetching (in
the remotefilelog override). So the call to _computenonoverlap() is
now pointless (the sets of files from _computenonoverlap() are subsets
of the sets of files from _computeforwardmissing()).
This somehow also fixes a broken remotefilelog test.
Differential Revision: https://phab.mercurial-scm.org/D6256
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Fri, 12 Apr 2019 10:44:37 -0700 |
parents | 0800d9e6e216 |
children | d7304434390f |
comparison
equal
deleted
inserted
replaced
42222:57203e0210f8 | 42223:d69bc8ffbe6f |
---|---|
96 $ hg pull -q | 96 $ hg pull -q |
97 $ hg debugsparse -I z | 97 $ hg debugsparse -I z |
98 $ clearcache | 98 $ clearcache |
99 $ hg prefetch -r '. + .^' -I x -I z | 99 $ hg prefetch -r '. + .^' -I x -I z |
100 4 files fetched over 1 fetches - (4 misses, 0.00% hit ratio) over * (glob) | 100 4 files fetched over 1 fetches - (4 misses, 0.00% hit ratio) over * (glob) |
101 Originally this was testing that the rebase doesn't fetch pointless | |
102 blobs. Right now it fails because core's sparse can't load a spec from | |
103 the working directory. Presumably there's a fix, but I'm not sure what it is. | |
104 $ hg rebase -d 2 --keep | 101 $ hg rebase -d 2 --keep |
105 rebasing 1:876b1317060d "x2" (foo) | 102 rebasing 1:876b1317060d "x2" (foo) |
106 transaction abort! | |
107 rollback completed | |
108 abort: cannot parse sparse patterns from working directory | |
109 [255] |