Show More
@@ -1,68 +1,120 b'' | |||||
1 | $ hg init test |
|
1 | $ hg init test | |
2 | $ cd test |
|
2 | $ cd test | |
3 | $ hg debugbuilddag '+2' |
|
3 | $ hg debugbuilddag '+2' | |
4 | $ hg phase --public 0 |
|
4 | $ hg phase --public 0 | |
5 |
|
5 | |||
6 | $ hg serve -p $HGPORT -d --pid-file=hg.pid -E errors.log |
|
6 | $ hg serve -p $HGPORT -d --pid-file=hg.pid -E errors.log | |
7 | $ cat hg.pid >> $DAEMON_PIDS |
|
7 | $ cat hg.pid >> $DAEMON_PIDS | |
8 | $ cd .. |
|
8 | $ cd .. | |
9 | $ hg init test2 |
|
9 | $ hg init test2 | |
10 | $ cd test2 |
|
10 | $ cd test2 | |
11 | $ hg incoming http://foo:xyzzy@localhost:$HGPORT/ |
|
11 | $ hg incoming http://foo:xyzzy@localhost:$HGPORT/ -T '{desc}\n' | |
12 | comparing with http://foo:***@localhost:$HGPORT/ |
|
12 | comparing with http://foo:***@localhost:$HGPORT/ | |
13 | changeset: 0:1ea73414a91b |
|
13 | r0 | |
14 | user: debugbuilddag |
|
14 | r1 | |
15 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
|||
16 | summary: r0 |
|
|||
17 |
|
||||
18 | changeset: 1:66f7d451a68b |
|
|||
19 | tag: tip |
|
|||
20 | user: debugbuilddag |
|
|||
21 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
|||
22 | summary: r1 |
|
|||
23 |
|
||||
24 |
$ |
|
15 | $ killdaemons.py | |
25 |
|
16 | |||
26 |
$ |
|
17 | $ cd .. | |
27 |
$ |
|
18 | $ hg -R test --config server.view=immutable serve -p $HGPORT -d --pid-file=hg.pid -E errors.log | |
28 | $ cat hg.pid >> $DAEMON_PIDS |
|
19 | $ cat hg.pid >> $DAEMON_PIDS | |
29 | $ hg -R test2 incoming http://foo:xyzzy@localhost:$HGPORT/ |
|
20 | $ hg -R test2 incoming http://foo:xyzzy@localhost:$HGPORT/ -T '{desc}\n' | |
30 | comparing with http://foo:***@localhost:$HGPORT/ |
|
21 | comparing with http://foo:***@localhost:$HGPORT/ | |
31 | changeset: 0:1ea73414a91b |
|
22 | r0 | |
32 | tag: tip |
|
|||
33 | user: debugbuilddag |
|
|||
34 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
|||
35 | summary: r0 |
|
|||
36 |
|
||||
37 |
|
23 | |||
38 | Check same result using `experimental.extra-filter-revs` |
|
24 | Check same result using `experimental.extra-filter-revs` | |
39 |
|
25 | |||
40 | $ hg -R test --config experimental.extra-filter-revs='not public()' serve -p $HGPORT1 -d --pid-file=hg2.pid -E errors.log |
|
26 | $ hg -R test --config experimental.extra-filter-revs='not public()' serve -p $HGPORT1 -d --pid-file=hg2.pid -E errors.log | |
41 | $ cat hg2.pid >> $DAEMON_PIDS |
|
27 | $ cat hg2.pid >> $DAEMON_PIDS | |
42 | $ hg -R test2 incoming http://foo:xyzzy@localhost:$HGPORT1/ |
|
28 | $ hg -R test2 incoming http://foo:xyzzy@localhost:$HGPORT1/ | |
43 | comparing with http://foo:***@localhost:$HGPORT1/ |
|
29 | comparing with http://foo:***@localhost:$HGPORT1/ | |
44 | changeset: 0:1ea73414a91b |
|
30 | changeset: 0:1ea73414a91b | |
45 | tag: tip |
|
31 | tag: tip | |
46 | user: debugbuilddag |
|
32 | user: debugbuilddag | |
47 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
33 | date: Thu Jan 01 00:00:00 1970 +0000 | |
48 | summary: r0 |
|
34 | summary: r0 | |
49 |
|
35 | |||
50 | $ hg -R test --config experimental.extra-filter-revs='not public()' debugupdatecache |
|
36 | $ hg -R test --config experimental.extra-filter-revs='not public()' debugupdatecache | |
51 | $ ls -1 test/.hg/cache/ |
|
37 | $ ls -1 test/.hg/cache/ | |
52 | branch2-base%89c45d2fa07e |
|
38 | branch2-base%89c45d2fa07e | |
53 | branch2-immutable%89c45d2fa07e |
|
39 | branch2-immutable%89c45d2fa07e | |
54 | branch2-served |
|
40 | branch2-served | |
55 | branch2-served%89c45d2fa07e |
|
41 | branch2-served%89c45d2fa07e | |
56 | branch2-served.hidden%89c45d2fa07e |
|
42 | branch2-served.hidden%89c45d2fa07e | |
57 | branch2-visible%89c45d2fa07e |
|
43 | branch2-visible%89c45d2fa07e | |
58 | branch2-visible-hidden%89c45d2fa07e |
|
44 | branch2-visible-hidden%89c45d2fa07e | |
59 | hgtagsfnodes1 |
|
45 | hgtagsfnodes1 | |
60 | rbc-names-v1 |
|
46 | rbc-names-v1 | |
61 | rbc-revs-v1 |
|
47 | rbc-revs-v1 | |
62 | tags2 |
|
48 | tags2 | |
63 | tags2-served%89c45d2fa07e |
|
49 | tags2-served%89c45d2fa07e | |
64 |
|
50 | |||
65 | cleanup |
|
51 | cleanup | |
66 |
|
52 | |||
67 | $ cat errors.log |
|
53 | $ cat errors.log | |
68 | $ killdaemons.py |
|
54 | $ killdaemons.py | |
|
55 | ||||
|
56 | Check the behavior is other filtered revision exists | |||
|
57 | ---------------------------------------------------- | |||
|
58 | ||||
|
59 | add more content and complexity to the repository too | |||
|
60 | ||||
|
61 | $ hg -R test debugbuilddag '+6:branchpoint.:left+4*branchpoint.:right+5' --from-existing | |||
|
62 | $ hg -R test phase --public 'desc("re:^r11$")' | |||
|
63 | $ hg -R test phase --secret --force 'desc("re:^r9$")' | |||
|
64 | $ hg -R test log -G -T '{desc} {phase}\n' | |||
|
65 | o r17 draft | |||
|
66 | | | |||
|
67 | o r16 draft | |||
|
68 | | | |||
|
69 | o r15 draft | |||
|
70 | | | |||
|
71 | o r14 draft | |||
|
72 | | | |||
|
73 | o r13 draft | |||
|
74 | | | |||
|
75 | o r12 draft | |||
|
76 | | | |||
|
77 | o r11 public | |||
|
78 | | | |||
|
79 | | o r10 secret | |||
|
80 | | | | |||
|
81 | | o r9 secret | |||
|
82 | | | | |||
|
83 | | o r8 draft | |||
|
84 | | | | |||
|
85 | | o r7 draft | |||
|
86 | | | | |||
|
87 | | o r6 draft | |||
|
88 | |/ | |||
|
89 | o r5 public | |||
|
90 | | | |||
|
91 | o r4 public | |||
|
92 | | | |||
|
93 | o r3 public | |||
|
94 | | | |||
|
95 | o r2 public | |||
|
96 | | | |||
|
97 | o r1 public | |||
|
98 | | | |||
|
99 | o r0 public | |||
|
100 | ||||
|
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 | |||
|
102 | $ cat hg2.pid >> $DAEMON_PIDS | |||
|
103 | $ hg -R test2 incoming http://foo:xyzzy@localhost:$HGPORT1/ -T '{desc}\n' | |||
|
104 | comparing with http://foo:***@localhost:$HGPORT1/ | |||
|
105 | r0 | |||
|
106 | r1 | |||
|
107 | r2 | |||
|
108 | r3 | |||
|
109 | r4 | |||
|
110 | r5 | |||
|
111 | r6 (missing-correct-output !) | |||
|
112 | r7 (missing-correct-output !) | |||
|
113 | r8 (missing-correct-output !) | |||
|
114 | r11 (missing-correct-output !) | |||
|
115 | r12 (missing-correct-output !) | |||
|
116 | ||||
|
117 | cleanups | |||
|
118 | ||||
|
119 | $ cat errors.log | |||
|
120 | $ killdaemons.py |
General Comments 0
You need to be logged in to leave comments.
Login now