author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
Tue, 07 Mar 2017 12:04:05 +0100 | |
changeset 2045 | db617700d318 |
parent 1838 | 6942750831bb |
child 2046 | 994d81caec68 |
permissions | -rw-r--r-- |
881
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
1 |
|
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
2 |
$ cat >> $HGRCPATH <<EOF |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
3 |
> [defaults] |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
4 |
> amend=-d "0 0" |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
5 |
> [web] |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
6 |
> push_ssl = false |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
7 |
> allow_push = * |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
8 |
> [phases] |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
9 |
> publish = False |
1356
aff6bc2a6b2d
test: adapt to change in mercurial core
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1248
diff
changeset
|
10 |
> [experimental] |
1721
d3429d25e0cb
test: also use 'devel.legacy.exchange=bundle1' in test
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
1522
diff
changeset
|
11 |
> bundle2-exp=False # < Mercurial-4.0 |
d3429d25e0cb
test: also use 'devel.legacy.exchange=bundle1' in test
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
1522
diff
changeset
|
12 |
> [devel] |
d3429d25e0cb
test: also use 'devel.legacy.exchange=bundle1' in test
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
1522
diff
changeset
|
13 |
> legacy.exchange=bundle1 |
881
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
14 |
> [extensions] |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
15 |
> EOF |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
16 |
|
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
17 |
$ mkcommit() { |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
18 |
> echo "$1" > "$1" |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
19 |
> hg add "$1" |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
20 |
> hg ci -m "add $1" |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
21 |
> } |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
22 |
|
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
23 |
setup repo |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
24 |
|
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
25 |
$ hg init server |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
26 |
$ echo "[extensions]" >> ./server/.hg/hgrc |
1808
202ac6c94b7f
hgext3rd: move 'simple4server' as 'evolve.serveronly'
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
1806
diff
changeset
|
27 |
$ echo "evolve=$(echo $(dirname $TESTDIR))/hgext3rd/evolve/serveronly.py" >> ./server/.hg/hgrc |
881
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
28 |
$ hg serve -R server -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
29 |
$ cat hg.pid >> $DAEMON_PIDS |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
30 |
|
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
31 |
$ hg clone http://localhost:$HGPORT/ client |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
32 |
no changes found |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
33 |
updating to branch default |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
34 |
0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
1087
82873af0cf10
test-simple4server: add error output for http
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1042
diff
changeset
|
35 |
$ cat ./errors.log |
881
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
36 |
$ echo "[extensions]" >> ./client/.hg/hgrc |
1806
9f42f819267b
evolve: move the extensions to 'hgext3rd'
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
1768
diff
changeset
|
37 |
$ echo "evolve=$(echo $(dirname $TESTDIR))/hgext3rd/evolve/" >> ./client/.hg/hgrc |
881
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
38 |
$ cp -r client other |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
39 |
|
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
40 |
Smoke testing |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
41 |
=============== |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
42 |
|
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
43 |
$ cd client |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
44 |
$ mkcommit 0 |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
45 |
$ mkcommit a |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
46 |
$ hg push |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
47 |
pushing to http://localhost:$HGPORT/ |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
48 |
searching for changes |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
49 |
remote: adding changesets |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
50 |
remote: adding manifests |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
51 |
remote: adding file changes |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
52 |
remote: added 2 changesets with 2 changes to 2 files |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
53 |
$ hg pull |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
54 |
pulling from http://localhost:$HGPORT/ |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
55 |
searching for changes |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
56 |
no changes found |
1087
82873af0cf10
test-simple4server: add error output for http
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1042
diff
changeset
|
57 |
$ cat ../errors.log |
881
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
58 |
$ hg pull -R ../other |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
59 |
pulling from http://localhost:$HGPORT/ |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
60 |
requesting all changes |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
61 |
adding changesets |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
62 |
adding manifests |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
63 |
adding file changes |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
64 |
added 2 changesets with 2 changes to 2 files |
1038
45c4739e85dc
evolve: make the "pulling obsolescence marker" message important
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1037
diff
changeset
|
65 |
pull obsolescence markers |
881
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
66 |
(run 'hg update' to get a working copy) |
1087
82873af0cf10
test-simple4server: add error output for http
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1042
diff
changeset
|
67 |
$ cat ../errors.log |
881
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
68 |
$ hg push -R ../other |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
69 |
pushing to http://localhost:$HGPORT/ |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
70 |
searching for changes |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
71 |
no changes found |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
72 |
[1] |
1087
82873af0cf10
test-simple4server: add error output for http
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1042
diff
changeset
|
73 |
$ cat ../errors.log |
881
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
74 |
|
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
75 |
Capacity testing |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
76 |
=================== |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
77 |
|
1768
e036dfc8cfcc
tests: use curl instead of wget
Simon Farnsworth <simonfar@fb.com>
parents:
1721
diff
changeset
|
78 |
$ curl -s http://localhost:$HGPORT/?cmd=hello |
1365
8ac1b7bd46ea
tests: ignores other core output in capability testing
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1356
diff
changeset
|
79 |
capabilities: * _evoext_pushobsmarkers_0 _evoext_pullobsmarkers_0 _evoext_obshash_0 _evoext_obshash_1 _evoext_getbundle_obscommon (glob) |
1768
e036dfc8cfcc
tests: use curl instead of wget
Simon Farnsworth <simonfar@fb.com>
parents:
1721
diff
changeset
|
80 |
$ curl -s http://localhost:$HGPORT/?cmd=capabilities |
1365
8ac1b7bd46ea
tests: ignores other core output in capability testing
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1356
diff
changeset
|
81 |
* _evoext_pushobsmarkers_0 _evoext_pullobsmarkers_0 _evoext_obshash_0 _evoext_obshash_1 _evoext_getbundle_obscommon (no-eol) (glob) |
881
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
82 |
|
1768
e036dfc8cfcc
tests: use curl instead of wget
Simon Farnsworth <simonfar@fb.com>
parents:
1721
diff
changeset
|
83 |
$ curl -s "http://localhost:$HGPORT/?cmd=listkeys&namespace=namespaces" | sort |
881
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
84 |
bookmarks |
906
24f59f38a202
test: sort output of listkey command
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
885
diff
changeset
|
85 |
namespaces |
24f59f38a202
test: sort output of listkey command
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
885
diff
changeset
|
86 |
obsolete |
881
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
87 |
phases |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
88 |
|
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
89 |
Push |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
90 |
============= |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
91 |
|
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
92 |
$ echo 'A' > a |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
93 |
$ hg amend |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
94 |
$ hg push |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
95 |
pushing to http://localhost:$HGPORT/ |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
96 |
searching for changes |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
97 |
remote: adding changesets |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
98 |
remote: adding manifests |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
99 |
remote: adding file changes |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
100 |
remote: added 1 changesets with 1 changes to 1 files (+1 heads) |
1453
8ca31deb8db7
merge with stable
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1451
diff
changeset
|
101 |
pushing 2 obsolescence markers (* bytes) (glob) |
1838
6942750831bb
serveronly: deduplicate code with the main evolve extension
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
1808
diff
changeset
|
102 |
remote: 2 obsolescence markers added |
1087
82873af0cf10
test-simple4server: add error output for http
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1042
diff
changeset
|
103 |
$ cat ../errors.log |
881
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
104 |
$ hg push |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
105 |
pushing to http://localhost:$HGPORT/ |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
106 |
searching for changes |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
107 |
no changes found |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
108 |
[1] |
1087
82873af0cf10
test-simple4server: add error output for http
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1042
diff
changeset
|
109 |
$ cat ../errors.log |
881
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
110 |
|
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
111 |
Pull |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
112 |
============= |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
113 |
|
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
114 |
$ hg -R ../other pull |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
115 |
pulling from http://localhost:$HGPORT/ |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
116 |
searching for changes |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
117 |
adding changesets |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
118 |
adding manifests |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
119 |
adding file changes |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
120 |
added 1 changesets with 1 changes to [12] files \(\+1 heads\) (re) |
1038
45c4739e85dc
evolve: make the "pulling obsolescence marker" message important
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1037
diff
changeset
|
121 |
pull obsolescence markers |
1040
640f3280559e
evolve: add "obsolescence" in front of marked in the previous message
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1039
diff
changeset
|
122 |
2 obsolescence markers added |
881
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
123 |
(run 'hg heads' to see heads) |
1087
82873af0cf10
test-simple4server: add error output for http
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1042
diff
changeset
|
124 |
$ cat ../errors.log |
881
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
125 |
$ hg -R ../other pull |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
126 |
pulling from http://localhost:$HGPORT/ |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
127 |
searching for changes |
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
128 |
no changes found |
1087
82873af0cf10
test-simple4server: add error output for http
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1042
diff
changeset
|
129 |
$ cat ../errors.log |
881
380aa41a53a5
export: add test for simple4server
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
130 |
|
882
48804a8d7472
simple4server: option to advertise obsolescence support
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
881
diff
changeset
|
131 |
$ cd .. |
48804a8d7472
simple4server: option to advertise obsolescence support
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
881
diff
changeset
|
132 |
|
48804a8d7472
simple4server: option to advertise obsolescence support
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
881
diff
changeset
|
133 |
Test disabling obsolete advertisement |
48804a8d7472
simple4server: option to advertise obsolescence support
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
881
diff
changeset
|
134 |
=========================================== |
48804a8d7472
simple4server: option to advertise obsolescence support
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
881
diff
changeset
|
135 |
(used by bitbucket to select which repo use evolve) |
48804a8d7472
simple4server: option to advertise obsolescence support
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
881
diff
changeset
|
136 |
|
1768
e036dfc8cfcc
tests: use curl instead of wget
Simon Farnsworth <simonfar@fb.com>
parents:
1721
diff
changeset
|
137 |
$ curl -s "http://localhost:$HGPORT/?cmd=listkeys&namespace=namespaces" | sort |
882
48804a8d7472
simple4server: option to advertise obsolescence support
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
881
diff
changeset
|
138 |
bookmarks |
906
24f59f38a202
test: sort output of listkey command
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
885
diff
changeset
|
139 |
namespaces |
24f59f38a202
test: sort output of listkey command
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
885
diff
changeset
|
140 |
obsolete |
882
48804a8d7472
simple4server: option to advertise obsolescence support
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
881
diff
changeset
|
141 |
phases |
1768
e036dfc8cfcc
tests: use curl instead of wget
Simon Farnsworth <simonfar@fb.com>
parents:
1721
diff
changeset
|
142 |
$ curl -s http://localhost:$HGPORT/?cmd=hello |
1365
8ac1b7bd46ea
tests: ignores other core output in capability testing
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1356
diff
changeset
|
143 |
capabilities: * _evoext_pushobsmarkers_0 _evoext_pullobsmarkers_0 _evoext_obshash_0 _evoext_obshash_1 _evoext_getbundle_obscommon (glob) |
1768
e036dfc8cfcc
tests: use curl instead of wget
Simon Farnsworth <simonfar@fb.com>
parents:
1721
diff
changeset
|
144 |
$ curl -s http://localhost:$HGPORT/?cmd=capabilities |
1365
8ac1b7bd46ea
tests: ignores other core output in capability testing
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1356
diff
changeset
|
145 |
* _evoext_pushobsmarkers_0 _evoext_pullobsmarkers_0 _evoext_obshash_0 _evoext_obshash_1 _evoext_getbundle_obscommon (no-eol) (glob) |
882
48804a8d7472
simple4server: option to advertise obsolescence support
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
881
diff
changeset
|
146 |
|
48804a8d7472
simple4server: option to advertise obsolescence support
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
881
diff
changeset
|
147 |
$ echo '[__temporary__]' >> server/.hg/hgrc |
48804a8d7472
simple4server: option to advertise obsolescence support
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
881
diff
changeset
|
148 |
$ echo 'advertiseobsolete=False' >> server/.hg/hgrc |
1522
97b9141cbf72
test: use 'killdaemons.py' from the run-tests directory
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1453
diff
changeset
|
149 |
$ $RUNTESTDIR/killdaemons.py $DAEMON_PIDS |
882
48804a8d7472
simple4server: option to advertise obsolescence support
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
881
diff
changeset
|
150 |
$ hg serve -R server -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log |
48804a8d7472
simple4server: option to advertise obsolescence support
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
881
diff
changeset
|
151 |
$ cat hg.pid >> $DAEMON_PIDS |
48804a8d7472
simple4server: option to advertise obsolescence support
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
881
diff
changeset
|
152 |
|
1768
e036dfc8cfcc
tests: use curl instead of wget
Simon Farnsworth <simonfar@fb.com>
parents:
1721
diff
changeset
|
153 |
$ curl -s "http://localhost:$HGPORT/?cmd=listkeys&namespace=namespaces" | sort |
882
48804a8d7472
simple4server: option to advertise obsolescence support
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
881
diff
changeset
|
154 |
bookmarks |
906
24f59f38a202
test: sort output of listkey command
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
885
diff
changeset
|
155 |
namespaces |
882
48804a8d7472
simple4server: option to advertise obsolescence support
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
881
diff
changeset
|
156 |
phases |
1768
e036dfc8cfcc
tests: use curl instead of wget
Simon Farnsworth <simonfar@fb.com>
parents:
1721
diff
changeset
|
157 |
$ curl -s http://localhost:$HGPORT/?cmd=hello | grep _evoext_pushobsmarkers_0 |
1365
8ac1b7bd46ea
tests: ignores other core output in capability testing
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1356
diff
changeset
|
158 |
[1] |
1768
e036dfc8cfcc
tests: use curl instead of wget
Simon Farnsworth <simonfar@fb.com>
parents:
1721
diff
changeset
|
159 |
$ curl -s http://localhost:$HGPORT/?cmd=capabilities | grep _evoext_pushobsmarkers_0 |
1365
8ac1b7bd46ea
tests: ignores other core output in capability testing
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1356
diff
changeset
|
160 |
[1] |
882
48804a8d7472
simple4server: option to advertise obsolescence support
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
881
diff
changeset
|
161 |
|
48804a8d7472
simple4server: option to advertise obsolescence support
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
881
diff
changeset
|
162 |
$ echo 'advertiseobsolete=True' >> server/.hg/hgrc |
1522
97b9141cbf72
test: use 'killdaemons.py' from the run-tests directory
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1453
diff
changeset
|
163 |
$ $RUNTESTDIR/killdaemons.py $DAEMON_PIDS |
882
48804a8d7472
simple4server: option to advertise obsolescence support
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
881
diff
changeset
|
164 |
$ hg serve -R server -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log |
48804a8d7472
simple4server: option to advertise obsolescence support
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
881
diff
changeset
|
165 |
$ cat hg.pid >> $DAEMON_PIDS |
48804a8d7472
simple4server: option to advertise obsolescence support
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
881
diff
changeset
|
166 |
|
1768
e036dfc8cfcc
tests: use curl instead of wget
Simon Farnsworth <simonfar@fb.com>
parents:
1721
diff
changeset
|
167 |
$ curl -s "http://localhost:$HGPORT/?cmd=listkeys&namespace=namespaces" | sort |
882
48804a8d7472
simple4server: option to advertise obsolescence support
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
881
diff
changeset
|
168 |
bookmarks |
906
24f59f38a202
test: sort output of listkey command
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
885
diff
changeset
|
169 |
namespaces |
24f59f38a202
test: sort output of listkey command
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
885
diff
changeset
|
170 |
obsolete |
882
48804a8d7472
simple4server: option to advertise obsolescence support
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
881
diff
changeset
|
171 |
phases |
1768
e036dfc8cfcc
tests: use curl instead of wget
Simon Farnsworth <simonfar@fb.com>
parents:
1721
diff
changeset
|
172 |
$ curl -s http://localhost:$HGPORT/?cmd=hello |
1365
8ac1b7bd46ea
tests: ignores other core output in capability testing
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1356
diff
changeset
|
173 |
capabilities: * _evoext_pushobsmarkers_0 _evoext_pullobsmarkers_0 _evoext_obshash_0 _evoext_obshash_1 _evoext_getbundle_obscommon (glob) |
1768
e036dfc8cfcc
tests: use curl instead of wget
Simon Farnsworth <simonfar@fb.com>
parents:
1721
diff
changeset
|
174 |
$ curl -s http://localhost:$HGPORT/?cmd=capabilities |
1365
8ac1b7bd46ea
tests: ignores other core output in capability testing
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1356
diff
changeset
|
175 |
* _evoext_pushobsmarkers_0 _evoext_pullobsmarkers_0 _evoext_obshash_0 _evoext_obshash_1 _evoext_getbundle_obscommon (no-eol) (glob) |