comparison tests/test-fncache.t @ 18234:a55b06885cda

branchmap: allow to use cache of subset Filtered repository are *subset* of unfiltered repository. This means that a filtered branchmap could be use to compute the unfiltered version. And filtered version happen to be subset of each other: - "all() - unserved()" is a subset of "all() - hidden()" - "all() - hidden()" is a subset of "all()" This means that branchmap with "unfiltered" filter can be used as a base for "hidden" branchmap that itself could be used as a base for unfiltered branchmap. unserved < hidden < None This changeset implements this mechanism. If the on disk branchcache is not valid we use the branchcache of the nearest subset as base instead of computing it from scratch. Such fallback can be cascaded multiple time is necessary. Note that both "hidden" and "unserved" set are a bit volatile. We will add more stable filtering in next changesets. This changeset enables collaboration between no filtering and "unserved" filtering. Fixing performance regression introduced by 47f00b0de337
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Mon, 07 Jan 2013 17:23:25 +0100
parents 49f759636aaf
children f3b21beb9802
comparison
equal deleted inserted replaced
18233:59a9f18d4587 18234:a55b06885cda
68 $ find .hg | sort 68 $ find .hg | sort
69 .hg 69 .hg
70 .hg/00changelog.i 70 .hg/00changelog.i
71 .hg/00manifest.i 71 .hg/00manifest.i
72 .hg/cache 72 .hg/cache
73 .hg/cache/branchheads 73 .hg/cache/branchheads-unserved
74 .hg/data 74 .hg/data
75 .hg/data/tst.d.hg 75 .hg/data/tst.d.hg
76 .hg/data/tst.d.hg/foo.i 76 .hg/data/tst.d.hg/foo.i
77 .hg/dirstate 77 .hg/dirstate
78 .hg/last-message.txt 78 .hg/last-message.txt
96 adding tst.d/Foo 96 adding tst.d/Foo
97 $ find .hg | sort 97 $ find .hg | sort
98 .hg 98 .hg
99 .hg/00changelog.i 99 .hg/00changelog.i
100 .hg/cache 100 .hg/cache
101 .hg/cache/branchheads 101 .hg/cache/branchheads-unserved
102 .hg/dirstate 102 .hg/dirstate
103 .hg/last-message.txt 103 .hg/last-message.txt
104 .hg/requires 104 .hg/requires
105 .hg/store 105 .hg/store
106 .hg/store/00changelog.i 106 .hg/store/00changelog.i