##// END OF EJS Templates
tests: remove references to bundle2-exp config option...
Gregory Szorc -
r36175:2405ca78 default
parent child Browse files
Show More
@@ -1,9 +1,8 b''
1 1 cat >> $HGRCPATH <<EOF
2 2 [extensions]
3 3 narrow=
4 4 [ui]
5 5 ssh=python "$TESTDIR/dummyssh"
6 6 [experimental]
7 bundle2-exp = True
8 7 changegroup3 = True
9 8 EOF
@@ -1,71 +1,69 b''
1 1 Setup
2 2
3 3 $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
4 4 $ export PYTHONPATH
5 5
6 6 $ cat > $TESTTMP/pretxnchangegroup.sh << EOF
7 7 > #!/bin/sh
8 8 > env | egrep "^HG_USERVAR_(DEBUG|BYPASS_REVIEW)" | sort
9 9 > exit 0
10 10 > EOF
11 11 $ cat >> $HGRCPATH << EOF
12 12 > [hooks]
13 13 > pretxnchangegroup = sh $TESTTMP/pretxnchangegroup.sh
14 > [experimental]
15 > bundle2-exp = true
16 14 > EOF
17 15
18 16 $ hg init repo
19 17 $ hg clone -q repo child
20 18 $ cd child
21 19
22 20 Test pushing vars to repo with pushvars.server not set
23 21
24 22 $ echo b > a
25 23 $ hg commit -Aqm a
26 24 $ hg push --pushvars "DEBUG=1" --pushvars "BYPASS_REVIEW=true"
27 25 pushing to $TESTTMP/repo
28 26 searching for changes
29 27 adding changesets
30 28 adding manifests
31 29 adding file changes
32 30 added 1 changesets with 1 changes to 1 files
33 31
34 32 Setting pushvars.sever = true and then pushing.
35 33
36 34 $ echo [push] >> $HGRCPATH
37 35 $ echo "pushvars.server = true" >> $HGRCPATH
38 36 $ echo b >> a
39 37 $ hg commit -Aqm a
40 38 $ hg push --pushvars "DEBUG=1" --pushvars "BYPASS_REVIEW=true"
41 39 pushing to $TESTTMP/repo
42 40 searching for changes
43 41 adding changesets
44 42 adding manifests
45 43 adding file changes
46 44 added 1 changesets with 1 changes to 1 files
47 45 HG_USERVAR_BYPASS_REVIEW=true
48 46 HG_USERVAR_DEBUG=1
49 47
50 48 Test pushing var with empty right-hand side
51 49
52 50 $ echo b >> a
53 51 $ hg commit -Aqm a
54 52 $ hg push --pushvars "DEBUG="
55 53 pushing to $TESTTMP/repo
56 54 searching for changes
57 55 adding changesets
58 56 adding manifests
59 57 adding file changes
60 58 added 1 changesets with 1 changes to 1 files
61 59 HG_USERVAR_DEBUG=
62 60
63 61 Test pushing bad vars
64 62
65 63 $ echo b >> a
66 64 $ hg commit -Aqm b
67 65 $ hg push --pushvars "DEBUG"
68 66 pushing to $TESTTMP/repo
69 67 searching for changes
70 68 abort: unable to parse variable 'DEBUG', should follow 'KEY=VALUE' or 'KEY=' format
71 69 [255]
General Comments 0
You need to be logged in to leave comments. Login now