comparison tests/test-repo-filters-tiptoe.t @ 43756:3082ef682bc2

repoview: add a test to track operation not supposed to trigger filtering This test will be useful to confirm we removed filtering trigger and to prevent it to come back without us noticing. Differential Revision: https://phab.mercurial-scm.org/D7479
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Sun, 17 Nov 2019 07:11:06 +0100
parents
children 09409a3fc3cc
comparison
equal deleted inserted replaced
43755:d2a7f0aab540 43756:3082ef682bc2
1 ===================================
2 Test repository filtering avoidance
3 ===================================
4
5 This test file is a bit special as he does not check feature, but performance related internal code path.
6
7 Right now, filtering a repository comes with a cost that might be significant.
8 Until this get better, ther are various operation that try hard not to trigger
9 a filtering computation. This test file make sure we don't reintroduce code that trigger the filtering for these operation:
10
11 Setup
12 -----
13 $ hg init test-repo
14 $ cd test-repo
15 $ echo "some line" > z
16 $ echo a > a
17 $ hg commit -Am a
18 adding a
19 adding z
20 $ echo "in a" >> z
21 $ echo b > b
22 $ hg commit -Am b
23 adding b
24 $ echo "file" >> z
25 $ echo c > c
26 $ hg commit -Am c
27 adding c
28 $ hg rm a
29 $ echo c1 > c
30 $ hg add c
31 c already tracked!
32 $ echo d > d
33 $ hg add d
34 $ rm b
35
36 $ cat << EOF >> $HGRCPATH
37 > [devel]
38 > debug.repo-filters = yes
39 > [ui]
40 > debug = yes
41 > EOF
42
43
44 tests
45 -----
46
47 Getting the node of `null`
48
49 $ hg init test-repo
50 $ cd test-repo
51 $ hg log -r null -T "{node}\n"
52 debug.filters: computing revision filter for "visible"
53 0000000000000000000000000000000000000000