comparison tests/test-evolve-serveronly-legacy.t @ 3149:79a926b557f1

compat: drop support for older exchange protocol Their have been better alternative for years. In addition they have been officially deprecated for quite some time. So we official stop support them to ease the maintainance.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 25 Oct 2017 04:45:31 +0200
parents tests/test-evolve-serveronly.t@8feb2cae7eae
children e1a230cc4527 e5d91fd1f319
comparison
equal deleted inserted replaced
3148:0ed75e700ad8 3149:79a926b557f1
1
2 $ . ${TESTDIR}/testlib/pythonpath.sh
3
4 $ cat >> $HGRCPATH <<EOF
5 > [defaults]
6 > amend=-d "0 0"
7 > [web]
8 > push_ssl = false
9 > allow_push = *
10 > [phases]
11 > publish = False
12 > [experimental]
13 > bundle2-exp=False # < Mercurial-4.0
14 > [devel]
15 > legacy.exchange=bundle1
16 > [extensions]
17 > EOF
18
19 $ mkcommit() {
20 > echo "$1" > "$1"
21 > hg add "$1"
22 > hg ci -m "add $1"
23 > }
24
25
26 $ hg init server
27
28 Try the multiple ways to setup the extension
29
30 $ hg -R server log --config 'extensions.evolve.serveronly='
31 $ hg -R server log --config "extensions.evolve.serveronly=${SRCDIR}/hgext3rd/evolve/serveronly.py"
32 $ PYTHONPATH=$HGTEST_ORIG_PYTHONPATH hg -R server log --config "extensions.evolve.serveronly=${SRCDIR}/hgext3rd/evolve/serveronly.py"
33
34 setup repo
35
36 $ echo "[extensions]" >> ./server/.hg/hgrc
37 $ echo "evolve.serveronly=" >> ./server/.hg/hgrc
38 $ hg serve -R server -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log --traceback
39 $ cat hg.pid >> $DAEMON_PIDS
40
41 $ hg clone http://localhost:$HGPORT/ client
42 no changes found
43 updating to branch default
44 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
45 $ cat ./errors.log
46 $ echo "[extensions]" >> ./client/.hg/hgrc
47 $ echo "evolve=" >> ./client/.hg/hgrc
48 $ cp -r client other
49
50 Smoke testing
51 ===============
52
53 $ cd client
54 $ mkcommit 0
55 $ mkcommit a
56 $ hg push
57 pushing to http://localhost:$HGPORT/
58 searching for changes
59 abort: remote error:
60 incompatible Mercurial client; bundle2 required
61 (see https://www.mercurial-scm.org/wiki/IncompatibleClient)
62 [255]
63 $ cat ../errors.log