Mercurial > hg
annotate tests/test-server-view.t @ 51715:7601978f9e9f
typing: add type hints to `cmdutil.findrepo()`
Since 10db46e128d4, pytype almost figured this out, going from `Any` -> `_T0`,
but the intent is obvious.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Thu, 18 Jul 2024 19:55:51 -0400 |
parents | 2e8a88e5809f |
children | 0f26ee69cf36 |
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 |
d345627d104b
repoview: introduce a `experimental.extra-filter-revs` config
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42106
diff
changeset
|
39 branch2-served |
42238
32338e27bb9d
updatecaches: also warm hgtagsfnodescache
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42231
diff
changeset
|
40 hgtagsfnodes1 |
42231
d345627d104b
repoview: introduce a `experimental.extra-filter-revs` config
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42106
diff
changeset
|
41 rbc-names-v1 |
d345627d104b
repoview: introduce a `experimental.extra-filter-revs` config
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42106
diff
changeset
|
42 rbc-revs-v1 |
d345627d104b
repoview: introduce a `experimental.extra-filter-revs` config
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42106
diff
changeset
|
43 tags2 |
d345627d104b
repoview: introduce a `experimental.extra-filter-revs` config
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42106
diff
changeset
|
44 tags2-served%89c45d2fa07e |
d345627d104b
repoview: introduce a `experimental.extra-filter-revs` config
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42106
diff
changeset
|
45 |
d345627d104b
repoview: introduce a `experimental.extra-filter-revs` config
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42106
diff
changeset
|
46 cleanup |
d345627d104b
repoview: introduce a `experimental.extra-filter-revs` config
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42106
diff
changeset
|
47 |
42106
bcf59ddc6173
test: minor cleanup to test-server-view.t
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
41840
diff
changeset
|
48 $ cat errors.log |
41840
d6569f1e9b37
server: allow customizing the default repo filter
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
49 $ 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
|
50 |
d24573181003
repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42712
diff
changeset
|
51 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
|
52 ---------------------------------------------------- |
d24573181003
repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42712
diff
changeset
|
53 |
d24573181003
repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42712
diff
changeset
|
54 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
|
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 $ 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
|
57 $ 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
|
58 $ 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
|
59 $ 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
|
60 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
|
61 | |
d24573181003
repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42712
diff
changeset
|
62 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
|
63 | |
d24573181003
repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42712
diff
changeset
|
64 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
|
65 | |
d24573181003
repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42712
diff
changeset
|
66 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
|
67 | |
d24573181003
repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42712
diff
changeset
|
68 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
|
69 | |
d24573181003
repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42712
diff
changeset
|
70 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
|
71 | |
d24573181003
repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42712
diff
changeset
|
72 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
|
73 | |
d24573181003
repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42712
diff
changeset
|
74 | 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
|
75 | | |
d24573181003
repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42712
diff
changeset
|
76 | 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
|
77 | | |
d24573181003
repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42712
diff
changeset
|
78 | 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
|
79 | | |
d24573181003
repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42712
diff
changeset
|
80 | 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
|
81 | | |
d24573181003
repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42712
diff
changeset
|
82 | 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
|
83 |/ |
d24573181003
repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42712
diff
changeset
|
84 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
|
85 | |
d24573181003
repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42712
diff
changeset
|
86 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
|
87 | |
d24573181003
repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42712
diff
changeset
|
88 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
|
89 | |
d24573181003
repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42712
diff
changeset
|
90 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
|
91 | |
d24573181003
repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42712
diff
changeset
|
92 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
|
93 | |
d24573181003
repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42712
diff
changeset
|
94 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
|
95 |
d24573181003
repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42712
diff
changeset
|
96 $ 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
|
97 $ 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
|
98 $ 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
|
99 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
|
100 r0 |
d24573181003
repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42712
diff
changeset
|
101 r1 |
d24573181003
repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42712
diff
changeset
|
102 r2 |
d24573181003
repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42712
diff
changeset
|
103 r3 |
d24573181003
repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42712
diff
changeset
|
104 r4 |
d24573181003
repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42712
diff
changeset
|
105 r5 |
50772
1680ef94ad2b
repoview: fix the filter created by `extrafilter`
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50771
diff
changeset
|
106 r6 |
1680ef94ad2b
repoview: fix the filter created by `extrafilter`
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50771
diff
changeset
|
107 r7 |
1680ef94ad2b
repoview: fix the filter created by `extrafilter`
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50771
diff
changeset
|
108 r8 |
1680ef94ad2b
repoview: fix the filter created by `extrafilter`
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50771
diff
changeset
|
109 r11 |
1680ef94ad2b
repoview: fix the filter created by `extrafilter`
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
50771
diff
changeset
|
110 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
|
111 |
d24573181003
repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42712
diff
changeset
|
112 cleanups |
d24573181003
repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42712
diff
changeset
|
113 |
d24573181003
repoview: show `extrafilter` misbehave when other filtering is in play
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
42712
diff
changeset
|
114 $ 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
|
115 $ killdaemons.py |