##// END OF EJS Templates
repoview: add a test to track operation not supposed to trigger filtering...
marmoute -
r44144:a7a4b3b2 default draft
parent child Browse files
Show More
@@ -0,0 +1,53 b''
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
General Comments 0
You need to be logged in to leave comments. Login now