annotate tests/test-extension-isolation.t @ 6848:e823d9117a68

tests: further relax the number of files check in test-check-sdist.t A previous patch bumped this number due to a different version of setuptools or distutils or some other package that we don't control, which made it pretty obvious that this check is not really practical. We need a better way to check that all needed files are present in the tarball. I have some ideas, but this patch can be applied without further waiting, and it'll already bring the benefit of not annoying developers or contributors while at the same time still keeping the test somewhat useful.
author Anton Shestakov <av6@dwimlabs.net>
date Mon, 16 Sep 2024 17:22:23 +0400
parents 02f8c88f3d59
children 8da51e02b5d3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4479
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
1 ============================
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
2 Testing extensions isolation
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
3 ============================
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
4
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
5 In this test case, we check that a repository using the extensions can co-exist
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
6 with a repository not using the extension.
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
7
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
8 $ . $TESTDIR/testlib/common.sh
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
9
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
10 Setup
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
11 =====
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
12
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
13 Create repo
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
14
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
15 $ hg init repo-evo
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
16 $ cat > repo-evo/.hg/hgrc << EOF
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
17 > [extensions]
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
18 > evolve=
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
19 > EOF
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
20 $ hg init repo-topic
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
21 $ cat > repo-topic/.hg/hgrc << EOF
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
22 > [extensions]
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
23 > topic=
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
24 > EOF
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
25 $ hg init repo-both
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
26 $ cat > repo-both/.hg/hgrc << EOF
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
27 > [extensions]
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
28 > evolve=
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
29 > topic=
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
30 > EOF
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
31 $ hg init repo-no-ext
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
32
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
33 check setup
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
34
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
35 $ hg -R repo-evo help -e evolve | head -n 1
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
36 warning: --repository ignored
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
37 evolve extension - extends Mercurial feature related to Changeset Evolution
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
38 $ hg -R repo-both help -e evolve | head -n 1
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
39 warning: --repository ignored
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
40 evolve extension - extends Mercurial feature related to Changeset Evolution
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
41 $ hg -R repo-no-ext help -e evolve
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
42 warning: --repository ignored
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
43 abort: no such help topic: evolve
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
44 (try 'hg help --keyword evolve')
5702
b56d07c41044 tests: update exit code when non-existent help section requested
Anton Shestakov <av6@dwimlabs.net>
parents: 5139
diff changeset
45 [10]
4479
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
46 $ hg -R repo-no-ext help -e topic
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
47 warning: --repository ignored
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
48 abort: no such help topic: topic
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
49 (try 'hg help --keyword topic')
5702
b56d07c41044 tests: update exit code when non-existent help section requested
Anton Shestakov <av6@dwimlabs.net>
parents: 5139
diff changeset
50 [10]
4479
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
51
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
52 start hgweb dir for all repo
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
53
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
54 $ cat > hgweb.conf << EOF
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
55 > [paths]
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
56 > / = *
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
57 > EOF
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
58
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
59 $ hg serve -p $HGPORT -d --pid-file=hg.pid --web-conf hgweb.conf -A access.log -E error.log
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
60 $ cat hg.pid >> $DAEMON_PIDS
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
61
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
62 Test isolation
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
63 --------------
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
64
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
65 As of 4.9 (and previous version). It seems like extensions are displayed as
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
66 enabled even for repository where they are not supposed to be. See the output
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
67 tagged `no-false`.
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
68
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
69 (however, topic and evolve are not supposed to affect other repository as shown
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
70 in the rest of this test).
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
71
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
72 $ get-with-headers.py $LOCALIP:$HGPORT 'repo-no-ext/help/extensions' | grep 'enabled extensions' -A 7
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
73 [1]
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
74 $ get-with-headers.py $LOCALIP:$HGPORT 'repo-evo/help/extensions' | grep 'enabled extensions' -A 7
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
75 enabled extensions:
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
76 </p>
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
77 <dl>
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
78 <dt>evolve
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
79 <dd>extends Mercurial feature related to Changeset Evolution
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
80 </dl>
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
81 <p>
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
82 disabled extensions:
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
83 $ get-with-headers.py $LOCALIP:$HGPORT 'repo-topic/help/extensions' | grep 'enabled extensions' -A 7
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
84 enabled extensions:
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
85 </p>
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
86 <dl>
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
87 <dt>evolve (no-false !)
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
88 <dd>extends Mercurial feature related to Changeset Evolution (no-false !)
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
89 <dt>topic
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
90 <dd>support for topic branches
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
91 </dl>
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
92 $ get-with-headers.py $LOCALIP:$HGPORT 'repo-both/help/extensions' | grep 'enabled extensions' -A 9
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
93 enabled extensions:
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
94 </p>
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
95 <dl>
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
96 <dt>evolve
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
97 <dd>extends Mercurial feature related to Changeset Evolution
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
98 <dt>topic
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
99 <dd>support for topic branches
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
100 </dl>
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
101 <p>
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
102 disabled extensions:
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
103 $ get-with-headers.py $LOCALIP:$HGPORT 'repo-no-ext/help/extensions' | grep 'enabled extensions' -A 9
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
104 enabled extensions: (no-false !)
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
105 </p> (no-false !)
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
106 <dl> (no-false !)
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
107 <dt>evolve (no-false !)
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
108 <dd>extends Mercurial feature related to Changeset Evolution (no-false !)
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
109 <dt>topic (no-false !)
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
110 <dd>support for topic branches (no-false !)
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
111 </dl> (no-false !)
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
112 <p> (no-false !)
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
113 disabled extensions: (no-false !)
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
114
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
115 make sure repos don't affect each other (and check both ways)
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
116
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
117 Check evolve isolation
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
118 -----------------------
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
119
6668
02f8c88f3d59 tests: replace obsolescent egrep with grep -E
Manuel Jacob <me@manueljacob.de>
parents: 6548
diff changeset
120 $ hg debugcapabilities http://$LOCALIP:$HGPORT/repo-no-ext | grep -E 'topics|evoext'
4479
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
121 [1]
6668
02f8c88f3d59 tests: replace obsolescent egrep with grep -E
Manuel Jacob <me@manueljacob.de>
parents: 6548
diff changeset
122 $ hg debugcapabilities http://$LOCALIP:$HGPORT/repo-evo | grep -E 'topics|evoext'
4479
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
123 _evoext_getbundle_obscommon
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
124 _evoext_obshashrange_v1
6668
02f8c88f3d59 tests: replace obsolescent egrep with grep -E
Manuel Jacob <me@manueljacob.de>
parents: 6548
diff changeset
125 $ hg debugcapabilities http://$LOCALIP:$HGPORT/repo-no-ext | grep -E 'topics|evoext'
4479
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
126 [1]
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
127
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
128 Check topic isolation
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
129 ---------------------
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
130
6668
02f8c88f3d59 tests: replace obsolescent egrep with grep -E
Manuel Jacob <me@manueljacob.de>
parents: 6548
diff changeset
131 $ hg debugcapabilities http://$LOCALIP:$HGPORT/repo-no-ext | grep -E 'topics|evoext'
4479
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
132 [1]
6668
02f8c88f3d59 tests: replace obsolescent egrep with grep -E
Manuel Jacob <me@manueljacob.de>
parents: 6548
diff changeset
133 $ hg debugcapabilities http://$LOCALIP:$HGPORT/repo-topic | grep -E 'topics|evoext'
5139
19b8ffd23795 topic: option to hide topic changesets to plain client
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 4643
diff changeset
134 _exttopics_heads
5931
6357551cb66f topic: announce ext-topics-publish capability in case of SSH and HTTP too
Anton Shestakov <av6@dwimlabs.net>
parents: 5702
diff changeset
135 ext-topics-publish=all
6548
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents: 6296
diff changeset
136 ext-topics-tns-heads
4479
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
137 topics
6296
a2855aff1268 topic: call a different wire protocol command to get tns-aware branchmap
Anton Shestakov <av6@dwimlabs.net>
parents: 5931
diff changeset
138 topics-namespaces
6668
02f8c88f3d59 tests: replace obsolescent egrep with grep -E
Manuel Jacob <me@manueljacob.de>
parents: 6548
diff changeset
139 $ hg debugcapabilities http://$LOCALIP:$HGPORT/repo-no-ext | grep -E 'topics|evoext'
4479
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
140 [1]
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
141
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
142 Check coupled isolation
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
143 -----------------------
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
144
6668
02f8c88f3d59 tests: replace obsolescent egrep with grep -E
Manuel Jacob <me@manueljacob.de>
parents: 6548
diff changeset
145 $ hg debugcapabilities http://$LOCALIP:$HGPORT/repo-no-ext | grep -E 'topics|evoext'
4479
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
146 [1]
6668
02f8c88f3d59 tests: replace obsolescent egrep with grep -E
Manuel Jacob <me@manueljacob.de>
parents: 6548
diff changeset
147 $ hg debugcapabilities http://$LOCALIP:$HGPORT/repo-both | grep -E 'topics|evoext'
4479
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
148 _evoext_getbundle_obscommon
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
149 _evoext_obshashrange_v1
5139
19b8ffd23795 topic: option to hide topic changesets to plain client
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 4643
diff changeset
150 _exttopics_heads
5931
6357551cb66f topic: announce ext-topics-publish capability in case of SSH and HTTP too
Anton Shestakov <av6@dwimlabs.net>
parents: 5702
diff changeset
151 ext-topics-publish=all
6548
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents: 6296
diff changeset
152 ext-topics-tns-heads
4479
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
153 topics
6296
a2855aff1268 topic: call a different wire protocol command to get tns-aware branchmap
Anton Shestakov <av6@dwimlabs.net>
parents: 5931
diff changeset
154 topics-namespaces
6668
02f8c88f3d59 tests: replace obsolescent egrep with grep -E
Manuel Jacob <me@manueljacob.de>
parents: 6548
diff changeset
155 $ hg debugcapabilities http://$LOCALIP:$HGPORT/repo-evo | grep -E 'topics|evoext'
4479
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
156 _evoext_getbundle_obscommon
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
157 _evoext_obshashrange_v1
6668
02f8c88f3d59 tests: replace obsolescent egrep with grep -E
Manuel Jacob <me@manueljacob.de>
parents: 6548
diff changeset
158 $ hg debugcapabilities http://$LOCALIP:$HGPORT/repo-topic | grep -E 'topics|evoext'
5139
19b8ffd23795 topic: option to hide topic changesets to plain client
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 4643
diff changeset
159 _exttopics_heads
5931
6357551cb66f topic: announce ext-topics-publish capability in case of SSH and HTTP too
Anton Shestakov <av6@dwimlabs.net>
parents: 5702
diff changeset
160 ext-topics-publish=all
6548
445240ccb701 topic: add experimental.tns-default-pull-namespaces config option
Anton Shestakov <av6@dwimlabs.net>
parents: 6296
diff changeset
161 ext-topics-tns-heads
4479
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
162 topics
6296
a2855aff1268 topic: call a different wire protocol command to get tns-aware branchmap
Anton Shestakov <av6@dwimlabs.net>
parents: 5931
diff changeset
163 topics-namespaces
6668
02f8c88f3d59 tests: replace obsolescent egrep with grep -E
Manuel Jacob <me@manueljacob.de>
parents: 6548
diff changeset
164 $ hg debugcapabilities http://$LOCALIP:$HGPORT/repo-evo | grep -E 'topics|evoext'
4479
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
165 _evoext_getbundle_obscommon
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
166 _evoext_obshashrange_v1
6668
02f8c88f3d59 tests: replace obsolescent egrep with grep -E
Manuel Jacob <me@manueljacob.de>
parents: 6548
diff changeset
167 $ hg debugcapabilities http://$LOCALIP:$HGPORT/repo-no-ext | grep -E 'topics|evoext'
4479
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
168 [1]
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
169
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
170 Final cleanup
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
171 -------------
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
172
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
173 $ cat error.log
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
174
2db0aca03a88 extensions: avoid enabling evolve for unrelated repositories (issue6057)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
175 $ $RUNTESTDIR/killdaemons.py $DAEMON_PIDS