annotate tests/test-namespaces-exchange.t @ 6887:45cbf0af48e7 stable

tests: update old changeset hashes in test-tutorial.t They actually should've been updated in 32ed5b6fadd3, but better late than never. Unfortunately, these messages are not tied directly to any command output, so the issue with using nonexistent hashes was not immediately obvious after running this test.
author Anton Shestakov <av6@dwimlabs.net>
date Thu, 03 Oct 2024 09:34:56 +0400
parents 5e6fa2dd796a
children cdf929e69cde
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6548
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
1 Limiting topic namespaces during exchange based on a config option
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
2
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
3 $ . "$TESTDIR/testlib/common.sh"
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
4
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
5 $ cat >> $HGRCPATH << EOF
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
6 > [extensions]
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
7 > topic =
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
8 > [phases]
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
9 > publish = no
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
10 > [ui]
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
11 > ssh = "$PYTHON" "$RUNTESTDIR/dummyssh"
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
12 > [devel]
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
13 > tns-report-transactions = pull
6562
703911d39f7a tests: add `hg incoming` with a template that includes {fqbn}
Anton Shestakov <av6@dwimlabs.net>
parents: 6548
diff changeset
14 > [ui]
703911d39f7a tests: add `hg incoming` with a template that includes {fqbn}
Anton Shestakov <av6@dwimlabs.net>
parents: 6548
diff changeset
15 > logtemplate = "{rev}: {desc} {fqbn} ({phase})\n"
6548
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
16 > EOF
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
17
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
18 $ hg init orig
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
19
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
20 #testcases local ssh http
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
21
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
22 #if http
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
23 $ hg serve -R orig -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
24 $ cat hg.pid >> $DAEMON_PIDS
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
25 #endif
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
26
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
27 we advertise the new capability, including during local exchange
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
28
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
29 #if local
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
30 $ hg debugcapabilities orig | grep topics
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
31 ext-topics-publish=none
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
32 ext-topics-tns-heads
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
33 topics
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
34 topics-namespaces
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
35 #endif
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
36 #if ssh
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
37 $ hg debugcapabilities ssh://user@dummy/orig | grep topics
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
38 _exttopics_heads
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
39 ext-topics-publish=none
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
40 ext-topics-tns-heads
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
41 topics
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
42 topics-namespaces
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
43 #endif
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
44 #if http
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
45 $ hg debugcapabilities http://localhost:$HGPORT/ | grep topics
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
46 _exttopics_heads
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
47 ext-topics-publish=none
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
48 ext-topics-tns-heads
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
49 topics
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
50 topics-namespaces
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
51 #endif
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
52
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
53 #if local
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
54 $ hg clone orig clone -q
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
55 #endif
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
56 #if ssh
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
57 $ hg clone ssh://user@dummy/orig clone -q
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
58 #endif
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
59 #if http
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
60 $ hg clone http://localhost:$HGPORT/ clone -q
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
61 #endif
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
62
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
63 $ cd orig
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
64
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
65 changesets without topic namespace are freely exchanged
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
66
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
67 $ echo apple > a
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
68 $ hg debug-topic-namespace --clear
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
69 $ hg topic apple
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
70 marked working directory as topic: apple
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
71 $ hg ci -qAm apple
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
72
6660
5e6fa2dd796a tests: show commit extras in a couple more places in test-namespaces*.t
Anton Shestakov <av6@dwimlabs.net>
parents: 6565
diff changeset
73 $ hg log -r . -T '{rev}: {join(extras, " ")}\n'
5e6fa2dd796a tests: show commit extras in a couple more places in test-namespaces*.t
Anton Shestakov <av6@dwimlabs.net>
parents: 6565
diff changeset
74 0: branch=default topic=apple
5e6fa2dd796a tests: show commit extras in a couple more places in test-namespaces*.t
Anton Shestakov <av6@dwimlabs.net>
parents: 6565
diff changeset
75
6562
703911d39f7a tests: add `hg incoming` with a template that includes {fqbn}
Anton Shestakov <av6@dwimlabs.net>
parents: 6548
diff changeset
76 $ hg incoming -R ../clone
703911d39f7a tests: add `hg incoming` with a template that includes {fqbn}
Anton Shestakov <av6@dwimlabs.net>
parents: 6548
diff changeset
77 comparing with * (glob)
703911d39f7a tests: add `hg incoming` with a template that includes {fqbn}
Anton Shestakov <av6@dwimlabs.net>
parents: 6548
diff changeset
78 0: apple default//apple (draft)
703911d39f7a tests: add `hg incoming` with a template that includes {fqbn}
Anton Shestakov <av6@dwimlabs.net>
parents: 6548
diff changeset
79
6548
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
80 $ hg pull -R ../clone
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
81 pulling from * (glob)
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
82 requesting all changes
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
83 adding changesets
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
84 adding manifests
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
85 adding file changes
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
86 added 1 changesets with 1 changes to 1 files
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
87 new changesets bf4c1d971543 (1 drafts)
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
88 (run 'hg update' to get a working copy)
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
89
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
90 changesets with topic namespaces are only exchanged if configuration allows
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
91
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
92 $ echo banana > b
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
93 $ hg debug-topic-namespace bob
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
94 marked working directory as topic namespace: bob
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
95 $ hg topic banana
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
96 $ hg ci -qAm 'banana'
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
97
6562
703911d39f7a tests: add `hg incoming` with a template that includes {fqbn}
Anton Shestakov <av6@dwimlabs.net>
parents: 6548
diff changeset
98 $ hg incoming -R ../clone --config experimental.tns-default-pull-namespaces=foo
703911d39f7a tests: add `hg incoming` with a template that includes {fqbn}
Anton Shestakov <av6@dwimlabs.net>
parents: 6548
diff changeset
99 comparing with * (glob)
703911d39f7a tests: add `hg incoming` with a template that includes {fqbn}
Anton Shestakov <av6@dwimlabs.net>
parents: 6548
diff changeset
100 searching for changes
703911d39f7a tests: add `hg incoming` with a template that includes {fqbn}
Anton Shestakov <av6@dwimlabs.net>
parents: 6548
diff changeset
101 no changes found
703911d39f7a tests: add `hg incoming` with a template that includes {fqbn}
Anton Shestakov <av6@dwimlabs.net>
parents: 6548
diff changeset
102 [1]
703911d39f7a tests: add `hg incoming` with a template that includes {fqbn}
Anton Shestakov <av6@dwimlabs.net>
parents: 6548
diff changeset
103
6548
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
104 $ hg pull -R ../clone --config experimental.tns-default-pull-namespaces=foo
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
105 pulling from * (glob)
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
106 searching for changes
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
107 no changes found
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
108
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
109 this config option takes a list of values
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
110
6562
703911d39f7a tests: add `hg incoming` with a template that includes {fqbn}
Anton Shestakov <av6@dwimlabs.net>
parents: 6548
diff changeset
111 $ hg incoming -R ../clone --config experimental.tns-default-pull-namespaces=foo,bob
703911d39f7a tests: add `hg incoming` with a template that includes {fqbn}
Anton Shestakov <av6@dwimlabs.net>
parents: 6548
diff changeset
112 comparing with * (glob)
703911d39f7a tests: add `hg incoming` with a template that includes {fqbn}
Anton Shestakov <av6@dwimlabs.net>
parents: 6548
diff changeset
113 searching for changes
703911d39f7a tests: add `hg incoming` with a template that includes {fqbn}
Anton Shestakov <av6@dwimlabs.net>
parents: 6548
diff changeset
114 1: banana default//bob/banana (draft)
703911d39f7a tests: add `hg incoming` with a template that includes {fqbn}
Anton Shestakov <av6@dwimlabs.net>
parents: 6548
diff changeset
115
6548
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
116 $ hg pull -R ../clone --config experimental.tns-default-pull-namespaces=foo,bob
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
117 pulling from * (glob)
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
118 searching for changes
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
119 adding changesets
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
120 adding manifests
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
121 adding file changes
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
122 topic namespaces affected: bob
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
123 added 1 changesets with 1 changes to 1 files
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
124 new changesets ed9751f04a18 (1 drafts)
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
125 (run 'hg update' to get a working copy)
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
126
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
127 we have a "permit all" config value
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
128
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
129 $ echo coconut > c
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
130 $ hg debug-topic-namespace charlie
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
131 $ hg topic coconut
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
132 $ hg ci -qAm 'coconut'
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
133
6562
703911d39f7a tests: add `hg incoming` with a template that includes {fqbn}
Anton Shestakov <av6@dwimlabs.net>
parents: 6548
diff changeset
134 $ hg incoming -R ../clone --config experimental.tns-default-pull-namespaces=*
703911d39f7a tests: add `hg incoming` with a template that includes {fqbn}
Anton Shestakov <av6@dwimlabs.net>
parents: 6548
diff changeset
135 comparing with * (glob)
703911d39f7a tests: add `hg incoming` with a template that includes {fqbn}
Anton Shestakov <av6@dwimlabs.net>
parents: 6548
diff changeset
136 searching for changes
703911d39f7a tests: add `hg incoming` with a template that includes {fqbn}
Anton Shestakov <av6@dwimlabs.net>
parents: 6548
diff changeset
137 2: coconut default//charlie/coconut (draft)
703911d39f7a tests: add `hg incoming` with a template that includes {fqbn}
Anton Shestakov <av6@dwimlabs.net>
parents: 6548
diff changeset
138
6548
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
139 $ hg pull -R ../clone --config experimental.tns-default-pull-namespaces=*
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
140 pulling from * (glob)
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
141 searching for changes
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
142 adding changesets
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
143 adding manifests
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
144 adding file changes
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
145 topic namespaces affected: charlie
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
146 added 1 changesets with 1 changes to 1 files
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
147 new changesets 16d2440597e2 (1 drafts)
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
148 (run 'hg update' to get a working copy)
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
149
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
150 testing the default value for this config option at the moment
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
151
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
152 $ echo durian > d
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
153 $ hg debug-topic-namespace dave
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
154 $ hg topic durian
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
155 $ hg ci -qAm 'durian'
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
156
6562
703911d39f7a tests: add `hg incoming` with a template that includes {fqbn}
Anton Shestakov <av6@dwimlabs.net>
parents: 6548
diff changeset
157 $ hg incoming -R ../clone
703911d39f7a tests: add `hg incoming` with a template that includes {fqbn}
Anton Shestakov <av6@dwimlabs.net>
parents: 6548
diff changeset
158 comparing with * (glob)
703911d39f7a tests: add `hg incoming` with a template that includes {fqbn}
Anton Shestakov <av6@dwimlabs.net>
parents: 6548
diff changeset
159 searching for changes
703911d39f7a tests: add `hg incoming` with a template that includes {fqbn}
Anton Shestakov <av6@dwimlabs.net>
parents: 6548
diff changeset
160 3: durian default//dave/durian (draft)
703911d39f7a tests: add `hg incoming` with a template that includes {fqbn}
Anton Shestakov <av6@dwimlabs.net>
parents: 6548
diff changeset
161
6548
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
162 $ hg pull -R ../clone
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
163 pulling from * (glob)
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
164 searching for changes
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
165 adding changesets
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
166 adding manifests
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
167 adding file changes
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
168 topic namespaces affected: dave
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
169 added 1 changesets with 1 changes to 1 files
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
170 new changesets d5d5dda52b2f (1 drafts)
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
171 (run 'hg update' to get a working copy)
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
172
6565
835f0adf8e39 topic: test config files and explicit --rev arguments using `hg incoming`
Anton Shestakov <av6@dwimlabs.net>
parents: 6562
diff changeset
173 testing related config options
835f0adf8e39 topic: test config files and explicit --rev arguments using `hg incoming`
Anton Shestakov <av6@dwimlabs.net>
parents: 6562
diff changeset
174 also specifying changesets and branches explicitly
835f0adf8e39 topic: test config files and explicit --rev arguments using `hg incoming`
Anton Shestakov <av6@dwimlabs.net>
parents: 6562
diff changeset
175
835f0adf8e39 topic: test config files and explicit --rev arguments using `hg incoming`
Anton Shestakov <av6@dwimlabs.net>
parents: 6562
diff changeset
176 $ echo elderberry > e
835f0adf8e39 topic: test config files and explicit --rev arguments using `hg incoming`
Anton Shestakov <av6@dwimlabs.net>
parents: 6562
diff changeset
177 $ hg debug-topic-namespace eve
835f0adf8e39 topic: test config files and explicit --rev arguments using `hg incoming`
Anton Shestakov <av6@dwimlabs.net>
parents: 6562
diff changeset
178 $ hg topic elderberry
835f0adf8e39 topic: test config files and explicit --rev arguments using `hg incoming`
Anton Shestakov <av6@dwimlabs.net>
parents: 6562
diff changeset
179 $ hg ci -qAm 'elderberry'
835f0adf8e39 topic: test config files and explicit --rev arguments using `hg incoming`
Anton Shestakov <av6@dwimlabs.net>
parents: 6562
diff changeset
180
835f0adf8e39 topic: test config files and explicit --rev arguments using `hg incoming`
Anton Shestakov <av6@dwimlabs.net>
parents: 6562
diff changeset
181 $ echo feijoa > f
835f0adf8e39 topic: test config files and explicit --rev arguments using `hg incoming`
Anton Shestakov <av6@dwimlabs.net>
parents: 6562
diff changeset
182 $ hg debug-topic-namespace frank
835f0adf8e39 topic: test config files and explicit --rev arguments using `hg incoming`
Anton Shestakov <av6@dwimlabs.net>
parents: 6562
diff changeset
183 $ hg topic feijoa
835f0adf8e39 topic: test config files and explicit --rev arguments using `hg incoming`
Anton Shestakov <av6@dwimlabs.net>
parents: 6562
diff changeset
184 $ hg ci -qAm 'feijoa'
835f0adf8e39 topic: test config files and explicit --rev arguments using `hg incoming`
Anton Shestakov <av6@dwimlabs.net>
parents: 6562
diff changeset
185
835f0adf8e39 topic: test config files and explicit --rev arguments using `hg incoming`
Anton Shestakov <av6@dwimlabs.net>
parents: 6562
diff changeset
186 global hgrc
835f0adf8e39 topic: test config files and explicit --rev arguments using `hg incoming`
Anton Shestakov <av6@dwimlabs.net>
parents: 6562
diff changeset
187
835f0adf8e39 topic: test config files and explicit --rev arguments using `hg incoming`
Anton Shestakov <av6@dwimlabs.net>
parents: 6562
diff changeset
188 $ cat >> $HGRCPATH << EOF
835f0adf8e39 topic: test config files and explicit --rev arguments using `hg incoming`
Anton Shestakov <av6@dwimlabs.net>
parents: 6562
diff changeset
189 > [experimental]
835f0adf8e39 topic: test config files and explicit --rev arguments using `hg incoming`
Anton Shestakov <av6@dwimlabs.net>
parents: 6562
diff changeset
190 > tns-default-pull-namespaces = alice, bob, eve
835f0adf8e39 topic: test config files and explicit --rev arguments using `hg incoming`
Anton Shestakov <av6@dwimlabs.net>
parents: 6562
diff changeset
191 > EOF
835f0adf8e39 topic: test config files and explicit --rev arguments using `hg incoming`
Anton Shestakov <av6@dwimlabs.net>
parents: 6562
diff changeset
192
835f0adf8e39 topic: test config files and explicit --rev arguments using `hg incoming`
Anton Shestakov <av6@dwimlabs.net>
parents: 6562
diff changeset
193 $ hg incoming -R ../clone
835f0adf8e39 topic: test config files and explicit --rev arguments using `hg incoming`
Anton Shestakov <av6@dwimlabs.net>
parents: 6562
diff changeset
194 comparing with * (glob)
835f0adf8e39 topic: test config files and explicit --rev arguments using `hg incoming`
Anton Shestakov <av6@dwimlabs.net>
parents: 6562
diff changeset
195 searching for changes
835f0adf8e39 topic: test config files and explicit --rev arguments using `hg incoming`
Anton Shestakov <av6@dwimlabs.net>
parents: 6562
diff changeset
196 4: elderberry default//eve/elderberry (draft)
835f0adf8e39 topic: test config files and explicit --rev arguments using `hg incoming`
Anton Shestakov <av6@dwimlabs.net>
parents: 6562
diff changeset
197
835f0adf8e39 topic: test config files and explicit --rev arguments using `hg incoming`
Anton Shestakov <av6@dwimlabs.net>
parents: 6562
diff changeset
198 global hgrc with explicit target
835f0adf8e39 topic: test config files and explicit --rev arguments using `hg incoming`
Anton Shestakov <av6@dwimlabs.net>
parents: 6562
diff changeset
199
835f0adf8e39 topic: test config files and explicit --rev arguments using `hg incoming`
Anton Shestakov <av6@dwimlabs.net>
parents: 6562
diff changeset
200 $ hg incoming -R ../clone --rev tip
835f0adf8e39 topic: test config files and explicit --rev arguments using `hg incoming`
Anton Shestakov <av6@dwimlabs.net>
parents: 6562
diff changeset
201 comparing with * (glob)
835f0adf8e39 topic: test config files and explicit --rev arguments using `hg incoming`
Anton Shestakov <av6@dwimlabs.net>
parents: 6562
diff changeset
202 searching for changes
835f0adf8e39 topic: test config files and explicit --rev arguments using `hg incoming`
Anton Shestakov <av6@dwimlabs.net>
parents: 6562
diff changeset
203 4: elderberry default//eve/elderberry (draft)
835f0adf8e39 topic: test config files and explicit --rev arguments using `hg incoming`
Anton Shestakov <av6@dwimlabs.net>
parents: 6562
diff changeset
204 5: feijoa default//frank/feijoa (draft)
835f0adf8e39 topic: test config files and explicit --rev arguments using `hg incoming`
Anton Shestakov <av6@dwimlabs.net>
parents: 6562
diff changeset
205
835f0adf8e39 topic: test config files and explicit --rev arguments using `hg incoming`
Anton Shestakov <av6@dwimlabs.net>
parents: 6562
diff changeset
206 source repo hgrc (should not matter)
835f0adf8e39 topic: test config files and explicit --rev arguments using `hg incoming`
Anton Shestakov <av6@dwimlabs.net>
parents: 6562
diff changeset
207
835f0adf8e39 topic: test config files and explicit --rev arguments using `hg incoming`
Anton Shestakov <av6@dwimlabs.net>
parents: 6562
diff changeset
208 $ cat >> ../orig/.hg/hgrc << EOF
835f0adf8e39 topic: test config files and explicit --rev arguments using `hg incoming`
Anton Shestakov <av6@dwimlabs.net>
parents: 6562
diff changeset
209 > [experimental]
835f0adf8e39 topic: test config files and explicit --rev arguments using `hg incoming`
Anton Shestakov <av6@dwimlabs.net>
parents: 6562
diff changeset
210 > tns-default-pull-namespaces = does, not, matter
835f0adf8e39 topic: test config files and explicit --rev arguments using `hg incoming`
Anton Shestakov <av6@dwimlabs.net>
parents: 6562
diff changeset
211 > EOF
835f0adf8e39 topic: test config files and explicit --rev arguments using `hg incoming`
Anton Shestakov <av6@dwimlabs.net>
parents: 6562
diff changeset
212
835f0adf8e39 topic: test config files and explicit --rev arguments using `hg incoming`
Anton Shestakov <av6@dwimlabs.net>
parents: 6562
diff changeset
213 $ hg incoming -R ../clone
835f0adf8e39 topic: test config files and explicit --rev arguments using `hg incoming`
Anton Shestakov <av6@dwimlabs.net>
parents: 6562
diff changeset
214 comparing with * (glob)
835f0adf8e39 topic: test config files and explicit --rev arguments using `hg incoming`
Anton Shestakov <av6@dwimlabs.net>
parents: 6562
diff changeset
215 searching for changes
835f0adf8e39 topic: test config files and explicit --rev arguments using `hg incoming`
Anton Shestakov <av6@dwimlabs.net>
parents: 6562
diff changeset
216 4: elderberry default//eve/elderberry (draft)
835f0adf8e39 topic: test config files and explicit --rev arguments using `hg incoming`
Anton Shestakov <av6@dwimlabs.net>
parents: 6562
diff changeset
217
835f0adf8e39 topic: test config files and explicit --rev arguments using `hg incoming`
Anton Shestakov <av6@dwimlabs.net>
parents: 6562
diff changeset
218 local repo hgrc (overrides global hgrc)
835f0adf8e39 topic: test config files and explicit --rev arguments using `hg incoming`
Anton Shestakov <av6@dwimlabs.net>
parents: 6562
diff changeset
219
835f0adf8e39 topic: test config files and explicit --rev arguments using `hg incoming`
Anton Shestakov <av6@dwimlabs.net>
parents: 6562
diff changeset
220 $ cat >> ../clone/.hg/hgrc << EOF
835f0adf8e39 topic: test config files and explicit --rev arguments using `hg incoming`
Anton Shestakov <av6@dwimlabs.net>
parents: 6562
diff changeset
221 > [experimental]
835f0adf8e39 topic: test config files and explicit --rev arguments using `hg incoming`
Anton Shestakov <av6@dwimlabs.net>
parents: 6562
diff changeset
222 > tns-default-pull-namespaces = frank
835f0adf8e39 topic: test config files and explicit --rev arguments using `hg incoming`
Anton Shestakov <av6@dwimlabs.net>
parents: 6562
diff changeset
223 > EOF
835f0adf8e39 topic: test config files and explicit --rev arguments using `hg incoming`
Anton Shestakov <av6@dwimlabs.net>
parents: 6562
diff changeset
224
835f0adf8e39 topic: test config files and explicit --rev arguments using `hg incoming`
Anton Shestakov <av6@dwimlabs.net>
parents: 6562
diff changeset
225 $ hg incoming -R ../clone
835f0adf8e39 topic: test config files and explicit --rev arguments using `hg incoming`
Anton Shestakov <av6@dwimlabs.net>
parents: 6562
diff changeset
226 comparing with * (glob)
835f0adf8e39 topic: test config files and explicit --rev arguments using `hg incoming`
Anton Shestakov <av6@dwimlabs.net>
parents: 6562
diff changeset
227 searching for changes
835f0adf8e39 topic: test config files and explicit --rev arguments using `hg incoming`
Anton Shestakov <av6@dwimlabs.net>
parents: 6562
diff changeset
228 4: elderberry default//eve/elderberry (draft)
835f0adf8e39 topic: test config files and explicit --rev arguments using `hg incoming`
Anton Shestakov <av6@dwimlabs.net>
parents: 6562
diff changeset
229 5: feijoa default//frank/feijoa (draft)
835f0adf8e39 topic: test config files and explicit --rev arguments using `hg incoming`
Anton Shestakov <av6@dwimlabs.net>
parents: 6562
diff changeset
230
835f0adf8e39 topic: test config files and explicit --rev arguments using `hg incoming`
Anton Shestakov <av6@dwimlabs.net>
parents: 6562
diff changeset
231 local repo hgrc with explicit target
835f0adf8e39 topic: test config files and explicit --rev arguments using `hg incoming`
Anton Shestakov <av6@dwimlabs.net>
parents: 6562
diff changeset
232
835f0adf8e39 topic: test config files and explicit --rev arguments using `hg incoming`
Anton Shestakov <av6@dwimlabs.net>
parents: 6562
diff changeset
233 $ hg incoming -R ../clone --rev 4
835f0adf8e39 topic: test config files and explicit --rev arguments using `hg incoming`
Anton Shestakov <av6@dwimlabs.net>
parents: 6562
diff changeset
234 comparing with * (glob)
835f0adf8e39 topic: test config files and explicit --rev arguments using `hg incoming`
Anton Shestakov <av6@dwimlabs.net>
parents: 6562
diff changeset
235 searching for changes
835f0adf8e39 topic: test config files and explicit --rev arguments using `hg incoming`
Anton Shestakov <av6@dwimlabs.net>
parents: 6562
diff changeset
236 4: elderberry default//eve/elderberry (draft)
835f0adf8e39 topic: test config files and explicit --rev arguments using `hg incoming`
Anton Shestakov <av6@dwimlabs.net>
parents: 6562
diff changeset
237
6548
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
238 #if http
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
239 $ $RUNTESTDIR/killdaemons.py $DAEMON_PIDS
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
240 $ cat $TESTTMP/errors.log
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
241 #endif
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
242
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
243 $ hg branches
6565
835f0adf8e39 topic: test config files and explicit --rev arguments using `hg incoming`
Anton Shestakov <av6@dwimlabs.net>
parents: 6562
diff changeset
244 default//frank/feijoa 5:c58726fdcfd8
835f0adf8e39 topic: test config files and explicit --rev arguments using `hg incoming`
Anton Shestakov <av6@dwimlabs.net>
parents: 6562
diff changeset
245 default//eve/elderberry 4:59694f5082fe (inactive)
835f0adf8e39 topic: test config files and explicit --rev arguments using `hg incoming`
Anton Shestakov <av6@dwimlabs.net>
parents: 6562
diff changeset
246 default//dave/durian 3:d5d5dda52b2f (inactive)
6548
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
247 default//charlie/coconut 2:16d2440597e2 (inactive)
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
248 default//bob/banana 1:ed9751f04a18 (inactive)
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
249 default//apple 0:bf4c1d971543 (inactive)
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
250
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
251 $ cd ..