annotate tests/test-server-view.t @ 51132:d45afa07564c stable

relnotes: add 6.6 There are no differences between the rc and the actual release.
author Raphaël Gomès <rgomes@octobus.net>
date Tue, 21 Nov 2023 16:20:58 +0100
parents 1680ef94ad2b
children 2e8a88e5809f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
41840
d6569f1e9b37 server: allow customizing the default repo filter
Joerg Sonnenberger <joerg@bec.de>
parents:
diff changeset
1 $ hg init test
d6569f1e9b37 server: allow customizing the default repo filter
Joerg Sonnenberger <joerg@bec.de>
parents:
diff changeset
2 $ cd test
d6569f1e9b37 server: allow customizing the default repo filter
Joerg Sonnenberger <joerg@bec.de>
parents:
diff changeset
3 $ hg debugbuilddag '+2'
d6569f1e9b37 server: allow customizing the default repo filter
Joerg Sonnenberger <joerg@bec.de>
parents:
diff changeset
4 $ hg phase --public 0
d6569f1e9b37 server: allow customizing the default repo filter
Joerg Sonnenberger <joerg@bec.de>
parents:
diff changeset
5
d6569f1e9b37 server: allow customizing the default repo filter
Joerg Sonnenberger <joerg@bec.de>
parents:
diff changeset
6 $ hg serve -p $HGPORT -d --pid-file=hg.pid -E errors.log
d6569f1e9b37 server: allow customizing the default repo filter
Joerg Sonnenberger <joerg@bec.de>
parents:
diff changeset
7 $ cat hg.pid >> $DAEMON_PIDS
d6569f1e9b37 server: allow customizing the default repo filter
Joerg Sonnenberger <joerg@bec.de>
parents:
diff changeset
8 $ cd ..
d6569f1e9b37 server: allow customizing the default repo filter
Joerg Sonnenberger <joerg@bec.de>
parents:
diff changeset
9 $ hg init test2
d6569f1e9b37 server: allow customizing the default repo filter
Joerg Sonnenberger <joerg@bec.de>
parents:
diff changeset
10 $ cd test2
50771
d24573181003 repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42712
diff changeset
11 $ hg incoming http://foo:xyzzy@localhost:$HGPORT/ -T '{desc}\n'
41840
d6569f1e9b37 server: allow customizing the default repo filter
Joerg Sonnenberger <joerg@bec.de>
parents:
diff changeset
12 comparing with http://foo:***@localhost:$HGPORT/
50771
d24573181003 repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42712
diff changeset
13 r0
d24573181003 repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42712
diff changeset
14 r1
41840
d6569f1e9b37 server: allow customizing the default repo filter
Joerg Sonnenberger <joerg@bec.de>
parents:
diff changeset
15 $ killdaemons.py
d6569f1e9b37 server: allow customizing the default repo filter
Joerg Sonnenberger <joerg@bec.de>
parents:
diff changeset
16
42106
bcf59ddc6173 test: minor cleanup to test-server-view.t
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 41840
diff changeset
17 $ cd ..
bcf59ddc6173 test: minor cleanup to test-server-view.t
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 41840
diff changeset
18 $ hg -R test --config server.view=immutable serve -p $HGPORT -d --pid-file=hg.pid -E errors.log
41840
d6569f1e9b37 server: allow customizing the default repo filter
Joerg Sonnenberger <joerg@bec.de>
parents:
diff changeset
19 $ cat hg.pid >> $DAEMON_PIDS
50771
d24573181003 repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42712
diff changeset
20 $ hg -R test2 incoming http://foo:xyzzy@localhost:$HGPORT/ -T '{desc}\n'
41840
d6569f1e9b37 server: allow customizing the default repo filter
Joerg Sonnenberger <joerg@bec.de>
parents:
diff changeset
21 comparing with http://foo:***@localhost:$HGPORT/
50771
d24573181003 repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42712
diff changeset
22 r0
42231
d345627d104b repoview: introduce a `experimental.extra-filter-revs` config
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42106
diff changeset
23
d345627d104b repoview: introduce a `experimental.extra-filter-revs` config
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42106
diff changeset
24 Check same result using `experimental.extra-filter-revs`
d345627d104b repoview: introduce a `experimental.extra-filter-revs` config
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42106
diff changeset
25
d345627d104b repoview: introduce a `experimental.extra-filter-revs` config
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42106
diff changeset
26 $ hg -R test --config experimental.extra-filter-revs='not public()' serve -p $HGPORT1 -d --pid-file=hg2.pid -E errors.log
d345627d104b repoview: introduce a `experimental.extra-filter-revs` config
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42106
diff changeset
27 $ cat hg2.pid >> $DAEMON_PIDS
d345627d104b repoview: introduce a `experimental.extra-filter-revs` config
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42106
diff changeset
28 $ hg -R test2 incoming http://foo:xyzzy@localhost:$HGPORT1/
d345627d104b repoview: introduce a `experimental.extra-filter-revs` config
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42106
diff changeset
29 comparing with http://foo:***@localhost:$HGPORT1/
d345627d104b repoview: introduce a `experimental.extra-filter-revs` config
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42106
diff changeset
30 changeset: 0:1ea73414a91b
d345627d104b repoview: introduce a `experimental.extra-filter-revs` config
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42106
diff changeset
31 tag: tip
d345627d104b repoview: introduce a `experimental.extra-filter-revs` config
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42106
diff changeset
32 user: debugbuilddag
d345627d104b repoview: introduce a `experimental.extra-filter-revs` config
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42106
diff changeset
33 date: Thu Jan 01 00:00:00 1970 +0000
d345627d104b repoview: introduce a `experimental.extra-filter-revs` config
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42106
diff changeset
34 summary: r0
d345627d104b repoview: introduce a `experimental.extra-filter-revs` config
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42106
diff changeset
35
d345627d104b repoview: introduce a `experimental.extra-filter-revs` config
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42106
diff changeset
36 $ hg -R test --config experimental.extra-filter-revs='not public()' debugupdatecache
d345627d104b repoview: introduce a `experimental.extra-filter-revs` config
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42106
diff changeset
37 $ ls -1 test/.hg/cache/
d345627d104b repoview: introduce a `experimental.extra-filter-revs` config
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42106
diff changeset
38 branch2-base%89c45d2fa07e
42712
cdf0e9523de1 branchmap: explicitly warm+write all subsets of the branchmap caches
Kyle Lippincott <spectral@google.com>
parents: 42238
diff changeset
39 branch2-immutable%89c45d2fa07e
42231
d345627d104b repoview: introduce a `experimental.extra-filter-revs` config
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42106
diff changeset
40 branch2-served
42712
cdf0e9523de1 branchmap: explicitly warm+write all subsets of the branchmap caches
Kyle Lippincott <spectral@google.com>
parents: 42238
diff changeset
41 branch2-served%89c45d2fa07e
cdf0e9523de1 branchmap: explicitly warm+write all subsets of the branchmap caches
Kyle Lippincott <spectral@google.com>
parents: 42238
diff changeset
42 branch2-served.hidden%89c45d2fa07e
cdf0e9523de1 branchmap: explicitly warm+write all subsets of the branchmap caches
Kyle Lippincott <spectral@google.com>
parents: 42238
diff changeset
43 branch2-visible%89c45d2fa07e
cdf0e9523de1 branchmap: explicitly warm+write all subsets of the branchmap caches
Kyle Lippincott <spectral@google.com>
parents: 42238
diff changeset
44 branch2-visible-hidden%89c45d2fa07e
42238
32338e27bb9d updatecaches: also warm hgtagsfnodescache
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42231
diff changeset
45 hgtagsfnodes1
42231
d345627d104b repoview: introduce a `experimental.extra-filter-revs` config
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42106
diff changeset
46 rbc-names-v1
d345627d104b repoview: introduce a `experimental.extra-filter-revs` config
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42106
diff changeset
47 rbc-revs-v1
d345627d104b repoview: introduce a `experimental.extra-filter-revs` config
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42106
diff changeset
48 tags2
d345627d104b repoview: introduce a `experimental.extra-filter-revs` config
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42106
diff changeset
49 tags2-served%89c45d2fa07e
d345627d104b repoview: introduce a `experimental.extra-filter-revs` config
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42106
diff changeset
50
d345627d104b repoview: introduce a `experimental.extra-filter-revs` config
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42106
diff changeset
51 cleanup
d345627d104b repoview: introduce a `experimental.extra-filter-revs` config
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42106
diff changeset
52
42106
bcf59ddc6173 test: minor cleanup to test-server-view.t
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 41840
diff changeset
53 $ cat errors.log
41840
d6569f1e9b37 server: allow customizing the default repo filter
Joerg Sonnenberger <joerg@bec.de>
parents:
diff changeset
54 $ killdaemons.py
50771
d24573181003 repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42712
diff changeset
55
d24573181003 repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42712
diff changeset
56 Check the behavior is other filtered revision exists
d24573181003 repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42712
diff changeset
57 ----------------------------------------------------
d24573181003 repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42712
diff changeset
58
d24573181003 repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42712
diff changeset
59 add more content and complexity to the repository too
d24573181003 repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42712
diff changeset
60
d24573181003 repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42712
diff changeset
61 $ hg -R test debugbuilddag '+6:branchpoint.:left+4*branchpoint.:right+5' --from-existing
d24573181003 repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42712
diff changeset
62 $ hg -R test phase --public 'desc("re:^r11$")'
d24573181003 repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42712
diff changeset
63 $ hg -R test phase --secret --force 'desc("re:^r9$")'
d24573181003 repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42712
diff changeset
64 $ hg -R test log -G -T '{desc} {phase}\n'
d24573181003 repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42712
diff changeset
65 o r17 draft
d24573181003 repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42712
diff changeset
66 |
d24573181003 repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42712
diff changeset
67 o r16 draft
d24573181003 repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42712
diff changeset
68 |
d24573181003 repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42712
diff changeset
69 o r15 draft
d24573181003 repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42712
diff changeset
70 |
d24573181003 repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42712
diff changeset
71 o r14 draft
d24573181003 repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42712
diff changeset
72 |
d24573181003 repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42712
diff changeset
73 o r13 draft
d24573181003 repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42712
diff changeset
74 |
d24573181003 repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42712
diff changeset
75 o r12 draft
d24573181003 repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42712
diff changeset
76 |
d24573181003 repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42712
diff changeset
77 o r11 public
d24573181003 repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42712
diff changeset
78 |
d24573181003 repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42712
diff changeset
79 | o r10 secret
d24573181003 repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42712
diff changeset
80 | |
d24573181003 repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42712
diff changeset
81 | o r9 secret
d24573181003 repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42712
diff changeset
82 | |
d24573181003 repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42712
diff changeset
83 | o r8 draft
d24573181003 repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42712
diff changeset
84 | |
d24573181003 repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42712
diff changeset
85 | o r7 draft
d24573181003 repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42712
diff changeset
86 | |
d24573181003 repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42712
diff changeset
87 | o r6 draft
d24573181003 repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42712
diff changeset
88 |/
d24573181003 repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42712
diff changeset
89 o r5 public
d24573181003 repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42712
diff changeset
90 |
d24573181003 repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42712
diff changeset
91 o r4 public
d24573181003 repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42712
diff changeset
92 |
d24573181003 repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42712
diff changeset
93 o r3 public
d24573181003 repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42712
diff changeset
94 |
d24573181003 repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42712
diff changeset
95 o r2 public
d24573181003 repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42712
diff changeset
96 |
d24573181003 repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42712
diff changeset
97 o r1 public
d24573181003 repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42712
diff changeset
98 |
d24573181003 repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42712
diff changeset
99 o r0 public
d24573181003 repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42712
diff changeset
100
d24573181003 repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42712
diff changeset
101 $ hg -R test --config experimental.extra-filter-revs='(desc("re:^r13$") + desc("re:^r10$"))::' serve -p $HGPORT1 -d --pid-file=hg2.pid -E errors.log
d24573181003 repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42712
diff changeset
102 $ cat hg2.pid >> $DAEMON_PIDS
d24573181003 repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42712
diff changeset
103 $ hg -R test2 incoming http://foo:xyzzy@localhost:$HGPORT1/ -T '{desc}\n'
d24573181003 repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42712
diff changeset
104 comparing with http://foo:***@localhost:$HGPORT1/
d24573181003 repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42712
diff changeset
105 r0
d24573181003 repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42712
diff changeset
106 r1
d24573181003 repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42712
diff changeset
107 r2
d24573181003 repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42712
diff changeset
108 r3
d24573181003 repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42712
diff changeset
109 r4
d24573181003 repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42712
diff changeset
110 r5
50772
1680ef94ad2b repoview: fix the filter created by `extrafilter`
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 50771
diff changeset
111 r6
1680ef94ad2b repoview: fix the filter created by `extrafilter`
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 50771
diff changeset
112 r7
1680ef94ad2b repoview: fix the filter created by `extrafilter`
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 50771
diff changeset
113 r8
1680ef94ad2b repoview: fix the filter created by `extrafilter`
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 50771
diff changeset
114 r11
1680ef94ad2b repoview: fix the filter created by `extrafilter`
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 50771
diff changeset
115 r12
50771
d24573181003 repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42712
diff changeset
116
d24573181003 repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42712
diff changeset
117 cleanups
d24573181003 repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42712
diff changeset
118
d24573181003 repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42712
diff changeset
119 $ cat errors.log
d24573181003 repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42712
diff changeset
120 $ killdaemons.py